The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Limiting Avatar File Size (Kb)?

3 posters

Go down

Solved Limiting Avatar File Size (Kb)?

Post by PKenova June 15th 2014, 5:53 am

Our CSS Stylesheet is set to automatically resize avatar pics to 80 x 80.  The avatar image pixel size is not the issue here.

Some of our users like to load animated avatar pics.  They are resized without problems.  However, these animation pics still require substantial FILE SIZE (Mb) and that slows the browsing experience for some other users.

In some cases, some people have repeatedly linked 2 Gb avatar files.

Is there a means by which we can prevent an avatar pic from loading if:
(a) the file size is larger than X Kb? (50 Kb) AND/OR
(b) is an animation file (*.gif)?

Our forum is running on "Invision".

Thanks in advance for your help.

Cheers, PK.
avatar
PKenova
New Member

Male Posts : 5
Reputation : 1
Language : English
Location : Australia

http://www.insuncorp.com

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by Pizza Boi June 16th 2014, 7:38 am

Hi Very Happy

AP < Display < Avatars Management < Personal Avatars

By putting a smaller number, it should stop the user from uploading them.

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by PKenova June 17th 2014, 8:38 am

Pizza Boi wrote:Hi Very Happy

AP < Display < Avatars Management < Personal Avatars

By putting a smaller number, it should stop the user from uploading them.

Regards,
Pizza Boi
Thanks for the reply.  Smile 

Unfortunately there's no option there to limit the file Kb size, and the only option is the maximum pixel dimensions (e.g. 80 x 80) - we already have both that and our CSS stylesheet set for 80x80.

For the moment I'm just having to ask users who link to off-site avatars to be responsible and then manually check their animated avatar Kb file size.

Then if they keep linking multi-Gb animations I can go into admin and disable their ability to display any personalized avatar (a last resort).
avatar
PKenova
New Member

Male Posts : 5
Reputation : 1
Language : English
Location : Australia

http://www.insuncorp.com

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by Jophy June 17th 2014, 9:08 am

Hello,

We don't have option to limit the file size to upload for now. Sorry.

I'm not sure if it can be achieved by JS coding. (I believe it can only be done by PHP)
Jophy
Jophy
ForumGuru

Male Posts : 17922
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by Pizza Boi June 17th 2014, 9:18 am

Hi Very Happy

Unfortunately, PHP coding isn't advisable nor is it allowed in Forumotion for security purposes if you want to ask how Sad .

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by PKenova June 17th 2014, 9:39 am

Thanks Jophy & Pizza Boi - I appreciate your answers - it's good to know so I can stop looking for a solution. Smile 

My manual workaround solution should do fine.

Cheers, PK.
avatar
PKenova
New Member

Male Posts : 5
Reputation : 1
Language : English
Location : Australia

http://www.insuncorp.com

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by Jophy June 17th 2014, 9:40 am

Solved
Jophy
Jophy
ForumGuru

Male Posts : 17922
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum