Support » Requests and Feedback » Image Compression – Allow Settings

  • Hey,

    I was wondering why new images uploaded recently would be lower quality than what was uploaded.

    I understand there’s automated image compression recently and I can appreciate the rationale behind it, but there should be a settings page to go along with this change.

    This would be especially useful for those of us who already optimize our images before uploading. Also, for those unfamiliar, this would be perceived as a problem with wordpress (i.e. increasing why do my pictures look grainy when uploaded?! posts)

Viewing 1 replies (of 1 total)
  • Moderator cubecolour



    Since version 4.5, WordPress uses a value of 82% for jpg compression by default. To change this you can add a filter to your theme’s functions.php or a custom plugin.

    The code required to change this to 100% is:

    add_filter('jpeg_quality', function($arg){return 100;});

    You can also replace the 100 in the code above with your own value if you want to use a different level of compression

Viewing 1 replies (of 1 total)
  • The topic ‘Image Compression – Allow Settings’ is closed to new replies.