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.
The forum of the forums
3 posters

    Limiting Avatar File Size (Kb)?

    avatar
    PKenova
    New Member


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

    Solved Limiting Avatar File Size (Kb)?

    Post by PKenova Sun 15 Jun - 5:53

    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.
    Pizza Boi
    Pizza Boi
    Hyperactive


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

    Solved Re: Limiting Avatar File Size (Kb)?

    Post by Pizza Boi Mon 16 Jun - 7:38

    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
    avatar
    PKenova
    New Member


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

    Solved Re: Limiting Avatar File Size (Kb)?

    Post by PKenova Tue 17 Jun - 8:38

    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).
    Jophy
    Jophy
    ForumGuru


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

    Solved Re: Limiting Avatar File Size (Kb)?

    Post by Jophy Tue 17 Jun - 9:08

    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)
    Pizza Boi
    Pizza Boi
    Hyperactive


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

    Solved Re: Limiting Avatar File Size (Kb)?

    Post by Pizza Boi Tue 17 Jun - 9:18

    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
    avatar
    PKenova
    New Member


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

    Solved Re: Limiting Avatar File Size (Kb)?

    Post by PKenova Tue 17 Jun - 9:39

    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.
    Jophy
    Jophy
    ForumGuru


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

    Solved Re: Limiting Avatar File Size (Kb)?

    Post by Jophy Tue 17 Jun - 9:40

    Solved

      Current date/time is Mon 23 Sep - 19:16