MG 1.1 Image quality upload settings to 100%

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!
 
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!
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->_tempFile, 100);

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.
 
Top Bottom