I understand WordPress creates smaller versions of the original image file.

These versions are blurry in comparison to the original which is a big issue as a photographer.

I set up this page you can see the difference https://www.jamieknop.com/test/

How can I stop WordPress compressing the images?

I tried adding the below to the functions.php file and regenerating the thumbnails but no luck.

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

Thanks, Jamie

2 Answers 2


You can set the width of each image sizes inside of WP > Settings > Media

Alternatively you can select the image size to be "Full image" when inserting each image into the post. This will choose the image you uploaded and not a cropped version.

  • The thumbnail size in WP > Settings > Media is already big. My website theme has a gallery function so unfortunately, it's not possible to change how the images are displayed with full image. I was able to resolve this using a plugin called WP Retina 2x :)
    – joker91
    Commented Sep 25, 2019 at 7:42

I was able to resolve this using a plugin called WP Retina 2x https://en-gb.wordpress.org/plugins/wp-retina-2x/ :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.