
How to Stop WordPress compressing images?
WordPress Media Library is compressing uploaded jpeg images by default to 82%
of their original quality. Before WordPress version 4.5 it was set to 90%
.
If you want to have JPEG image quality back to 100%
then it’s very simple.
Add below code to your theme’s functions.php file.
1 2 3 |
add_filter( 'jpeg_quality', function ( $arg ) { return 100; } ); |
Is there any other way to achieve this without code?
Yes.
- Download All-in-One Optimizer and Customizer WordPress Plugin.
- Enable toggle: Get back 100% JPEG image quality.

And you are all set.

Get All-in-One Optimizer & Customizer
A premium WordPress plugin which provides more than 50 options for you to customizer and optimize WordPress blog.
15% Discount link for Crunchify Readers.
Get your copy at 15% discount.