Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Avatar file size limit

Aloittaja Pedja, huhtikuu 20, 2007, 09:05:27 AP

« edellinen - seuraava »

Pedja

There are options to limit pixel size of uploaded avatar, but not file size.
I have problem with users that create animated avatars that fit within pixel size limtis baut are way to long file size to be acceptable.

Also, it would be great if SMF can recognize aniated gif and allow forbiding uploading animated GIF's.

KGIII

This may already be included with the next version of SMF. So, in short, 'tis a good idea.

We'll have to see if it is or not. I think it is a great idea BUT I wonder about the mechanics?

However... How would, efficiently, SMF check file sizes unless it was an uploaded image?

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

c2h5oh

You can check it clientside with js

var img = getImage(myImagePath);
var width=img.width;
var height=img.height;

of course I'd start with checking file size and then after upload verify it with http://php.net/getimagesize
"The day Microsoft makes something that does not suck is probably the day they start making vacuum cleaners"

Advertisement: