1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Avatar uploading permission.

Discussion in 'XenForo Pre-Sales Questions' started by EQnoble, Sep 2, 2010.

  1. EQnoble

    EQnoble Well-Known Member

    Just wondering if the allowed file size for avatar uploads has changed just recently. If not I think there may be a bug, I don't know so I post here until someone can definitively say either way.
  2. Mike

    Mike XenForo Developer Staff Member

    Nothing changed in terms of max size...
  3. EQnoble

    EQnoble Well-Known Member

    OK I'm about to sleep but if I'm not clear as to what my issue was ill try and replicate it tomorrow...

    I had an avatar who's file size was 130 kb and went to upload another that was smaller substancially and it said that I exceeded the maximum file size of ??( i don't remember exactly) I had switched my avatar twice without navigating away from the page I was at if that makes any difference. If there isn't an obvious thing to explain this I will capture my screen to display what I saw if I can duplicate it again.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Is there actually a max file size in terms of pixels and/or bytes?

    Or doesn't it matter as all avatars are resized anyway?
  5. Mike

    Mike XenForo Developer Staff Member

    There is a max size in bytes (after resizing to the largest size), to ensure that avatars don't get too large. I believe it's 30k, which generally should fit within the 192px-wide dimensions, unless it's a big animated GIF. This is configurable per group.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    That max size is after resizing though, yes?

    What I meant was when I browse to a file on my PC for uploading, is there a maximum limit then?
    I haven't had any problems uploading files in excess of 1MB, 3,000 pixels or more.
  7. Mike

    Mike XenForo Developer Staff Member

    The maximum size is after resizing, yes. There's no limit on what's uploaded beyond the PHP configuration limits.
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Thanks Mike, that should make things a lot easier for users.
  9. erich37

    erich37 Well-Known Member

    I also got an error-message when changing to another Avatar, saying something like "file-size too big".

    However, the image I uploaded was just a few KB.

    Then I tried again to upload the same image and then it was working fine.

    Looks like a bug somewhere........
  10. EQnoble

    EQnoble Well-Known Member

    Ok this is what i'm looking at

    and then here's whats confusing me... the avatar I'm currently using is like 5 times the size of the one I'm trying to use as seen here..
  11. Mike

    Mike XenForo Developer Staff Member

    They're at different dimensions though. We resize the 400x400 one down and that gets inside the file size we need; the 192x192 one is within the limits, so it doesn't get resized and is too large. We may investigate resizing when the dimensions are ok but the file size isn't, but that's a future thing.
  12. CyberAP

    CyberAP Well-Known Member

    Sometimes it's really better to use gravatar.com

Share This Page