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

Avatar thumbnail compression

Discussion in 'XenForo Questions and Support' started by Andy.N, Oct 6, 2010.

  1. Andy.N

    Andy.N Well-Known Member

    When members upload a picture for avatar, it's recommended to use at least 200x200. Does it has a max size?

    When I upload an exact 200x200 image, it fills the profile picture but the quality is lower, as well in smaller versions of the avatar after the system takes it in.

    Is there any setting in ACP where we can adjust thumbnail quality? like 90% or more?
  2. Jesepi

    Jesepi Well-Known Member

    I've not seen anything in the menus, but if you go to

    /library/XenForo/Image/Gd.php and look for:

    public function output($outputType, $outputFile = null, $quality = 75)
    You can change the quality value to something higher.
    Miko likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    The maximum avatar size you can upload is 192x384 px

    The quality is lower on the membercard and user avatar block due to the conversion and compression.

    As Jesepi has posted above, this can be changed to suit but it will take pages longer to load and make it worse for users browsing via mobile phones/cell phones.

Share This Page