By default, WordPress compresses your images for better performance. Recently one of our readers asked if it was possible to change the image compression setting in WordPress. In this article, we will show you how to increase or decrease JPEG image compression in WordPress.
Every time you upload a JPEG image in WordPress, it would automatically compress the image to 90% quality. In WordPress 4.5, this number was further decreased to 82% to improve site performance for mobile users.
If you are a photographer who wants to showcase high quality images on your website, then you can turn off image compression in WordPress.
How to Disable Image Compression in WordPress
All you need to do is paste the following code in your theme’s functions.php file or in a site-specific plugin.