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

MG 1.1 Image quality upload settings to 100%

Discussion in 'Media Gallery Support' started by sross, Feb 13, 2016.

  1. sross

    sross Active Member

    I think I saw someone mention this is hard coded to 85%? I am curious how to change this. I have a big dedicated server with pleeeenty of resource to spare.

    Am I right in that the setting is shared with attachment uploads? If it is I can live with it, or at the least test it out, I just need to know exactly how to change this. Thanks!
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Sorry for the delay in responding to this!

    Yes, it is shared with attachment uploads. The place to change this is in the library/XenForo/Upload.php file. Find:
    PHP:
    $success$image->output($type$this->_tempFile);
    Replace with:
    PHP:
    $success$image->output($type$this->_tempFile100);
    Where 100 is the desired quality. It does default to 85 currently (I thought it was higher to be honest). The exception is PNG quality (which is a different scale) and that defaults to the highest value of 9 already.
     
  3. sross

    sross Active Member

    thanks :)
     

Share This Page