Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: Acf on April 10, 2004, 04:47:33 AM

Title: avatar
Post by: Acf on April 10, 2004, 04:47:33 AM
I would like to be able to give groups the permission to upload there avatars.
I also would like to be able to set a file size for avatars.
Title: Re: avatar
Post by: bostasp on April 10, 2004, 06:22:57 AM
Yeah, there are some people that I'd perfer to restrict the uploading of avatars from, and a file size limit helps not only your disk space, but dial up users :)
Title: Re: avatar
Post by: Acf on April 10, 2004, 07:09:39 AM
Quote from: bostasp on April 10, 2004, 06:22:57 AM
Yeah, there are some people that I'd perfer to restrict the uploading of avatars from, and a file size limit helps not only your disk space, but dial up users :)

and my bandwith / month :P
Title: Re: avatar
Post by: [Unknown] on April 10, 2004, 10:04:30 AM
File size limit seems more than reasonable - think attachments.  And permission, well, Compuart is going to disagree because he hates "too many" permissions.

-[Unknown]
Title: Re: avatar
Post by: Acf on April 10, 2004, 11:12:21 AM
Quote from: [Unknown] on April 10, 2004, 10:04:30 AM
File size limit seems more than reasonable - think attachments.  And permission, well, Compuart is going to disagree because he hates "too many" permissions.

-[Unknown]

the more the better :D
Title: Re: avatar
Post by: dschwab9 on April 11, 2004, 04:59:55 AM
If the avatars were stored in jpeg format, disk space and bandwidth usage would be cut by 2/3's.  Is there any particular reason they are all stored as PNG's?
Title: Re: avatar
Post by: Grudge on April 11, 2004, 05:55:26 AM
PNGs compress better. You can change it if you wish :D

EDIT: When I say better I mean they look nicer!
Title: Re: avatar
Post by: dschwab9 on April 11, 2004, 05:59:54 AM
Quote from: Grudge on April 11, 2004, 05:55:26 AM
PNGs compress better. You can change it if you wish :D

I did.  Problem is the file size is huge (15-20KB for a 100x100 image is insane)  As jpeg's, they are only 3-5K.  Maybe there should be an admin center option?  ;D
Title: Re: avatar
Post by: Grudge on April 11, 2004, 06:08:21 AM
Maybe we could have an option for maximum file size and output format I guess. However, it's a case of how many people will use it and it's not for me to make these decisions :)
Title: Re: avatar
Post by: dschwab9 on April 11, 2004, 06:15:23 AM
You mean uploaded file size or stored file size?  Uploaded file size shouldn't be an issue because the GD functions are used to resize it, so the resulting file is always gonna be about the same size.

As far as how many people would use a file type option - switching to jpeg cuts disk usage/bandwidth and thus page load time by 2/3 with not a big difference in quality, so I'm sure everyone would use it.

Or, why not just save it in the same format is was upload as?  If they upload it as a jpeg (which most people do), it already has jpeg compression, so saving it as a png is not going to increase quality.
Title: Re: avatar
Post by: Grudge on April 11, 2004, 06:59:34 AM
I forgot the avatars got resized!! *doh*

As for saving type, the problem with saving it in the format it uploads in is that the compression would get horrible IMHO. Basically, PNG is lossless compression so no picture quality is lost. If you already have your image as a JPEG it's been compressed once already. When GD saves it as a JPEG it is then compressed again, so you have compressed it twice and it begins to look ugly :)

Basically, I think it should be one or the other - either everyones avatars look horrible or no-ones do :p However, if you want to do it this way I'll give you the code to do it if you wish.
Title: Re: avatar
Post by: dschwab9 on April 11, 2004, 07:17:32 AM
That's ok, I'm happy with mine just making them all jpegs  ;)  And I don't think they look horrible  :P  Maybe not quite as nice, but definately not horrible
Title: Re: avatar
Post by: AmphetaMarinE on April 11, 2004, 08:02:40 AM
I'm with grudge...
png is the format of choice for me, and my 2000+ users....
So not fussed either way....

But giving users the choice would also be nice... there are plenty of people around who swear by their own particular favourite filetype....

I've even seen people go as far as arguing about it lol....

"Forget the war in ****!!! JPG 0wnz whatever your choice is goddamn it!!!!!" lol... makes me laff
Title: Re: avatar
Post by: Chris Cromer on April 11, 2004, 09:07:42 AM
Your all nuts, .php rules! If you don't understand this statement... refresh this page and watch my avatar. ;)

Personally though, I like to go with .gif's... but gd doesn't have support for them anymore... so I think png is the next best thing.
Title: Re: avatar
Post by: Acf on April 11, 2004, 09:13:24 AM
support them all, and be done with it :P jpg gif png ....bmp
just use the format that was uploaded in. Gives the best result i geuss.
Title: Re: avatar
Post by: Chris Cromer on April 11, 2004, 09:18:53 AM
gif can't be used... did you read my last post? GD no longer supports gif's...
Title: Re: avatar
Post by: Acf on April 11, 2004, 09:23:42 AM
Quote from: Chris Cromer on April 11, 2004, 09:18:53 AM
gif can't be used... did you read my last post? GD no longer supports gif's...

:'( GD no longer supports gif's? why not?
Title: Re: avatar
Post by: Chris Cromer on April 11, 2004, 09:26:32 AM
Because the .gif format is is owned by a company(can't remember the name of the company?) They had to remove support for .gif because of legal problems.
Title: Re: avatar
Post by: Ben_S on April 11, 2004, 11:20:48 AM
The patent on the gif format expired in the US last year and expires in the rest of the world sometime this year (it may even be the end of this month I cant remember), so hopefully gif support will be reintroduced into gd in the not too distant future.

[edit]
Expries in the rest of the world on July 7th, 2004
[/edit]
Title: Re: avatar
Post by: bostasp on April 11, 2004, 02:01:45 PM
Quote from: Chris Cromer on April 11, 2004, 09:26:32 AM
Because the .gif format is is owned by a company(can't remember the name of the company?) They had to remove support for .gif because of legal problems.
Compuserve owns them, don't they? (Or at least did)
Title: Re: avatar
Post by: Chris Cromer on April 11, 2004, 02:25:11 PM
Probably... although I was thinking "compusa" when I wrote that. But compuserve makes more sense. :P
Title: Re: avatar
Post by: [Unknown] on April 11, 2004, 06:51:34 PM
It's actually the compression used in gifs that is patented.

-[Unknown]
Title: Re: avatar
Post by: IcyGeddon on August 01, 2004, 10:02:56 PM
Was a mod ever made for this? Even with the size limit, people can upload huge animated avatars and I don't want that. Is there a mod or feature to limit file size for avatars?
Title: Re: avatar
Post by: [Unknown] on August 02, 2004, 12:01:06 AM
I don't believe there is at the moment, but it wouldn't be that difficult a mod to make....

-[Unknown]
Title: Re: avatar
Post by: IcyGeddon on August 02, 2004, 12:17:08 AM
Ah thanks. It  would be a gem to have. I already had one person upload a 250,000 byte avatar.  >:(
Title: Re: avatar
Post by: RoCKeT-88 on December 21, 2004, 02:50:22 PM
Ok now that we hashed file format did we ever get anywhere on whether or not it is gonna be a permission for users to upload thier own avatars?
Title: Re: avatar
Post by: Ben_S on December 21, 2004, 02:57:59 PM
Quote from: `Z0mB|e` on December 21, 2004, 02:50:22 PM
Ok now that we hashed file format did we ever get anywhere on whether or not it is gonna be a permission for users to upload thier own avatars?

Yeah, was surprised thats not a permission myself, have just edited my profile template to share the remote avatar permission with upload.