Prevent WordPress to compress your jpg images

Open your functions.php file and paste the code below in it:

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

Save the file, and you’re done. That’s simple as that!

Thanks to WP Snippets for the tip!

Leave a Reply

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