Stop Automatic Compression of Images

The images which you upload on your site do not give the complete quality of it as WordPress has fixed the 90% quality for images as default. However, you can take it to hundred percent in order to ensure the complete quality of your images and do not waste even a single percent.

We are going to share a small PHP code which you need to use your theme which will stop WordPress from compressing your images and will ask WP to keep it 100%. The trick is going to be helpful for many Portfolios or Wallpapers blog where images are the key content, and they cannot compromise on the quality of their key content.

  • First of all, login to your WordPress Account and add the following snippet to the functions.php file or add it in a plugin.

add_filter( ‘jpeg_quality’, create_function( ”, ‘return 100;’ ) );

  • This was it!

 

Please follow and like us:
follow subscribe - Stop Automatic Compression of Images20

3 comments

Leave a Reply

Your email address will not be published. Required fields are marked *