Should I not compress my jpeg files before uploading to avoid double compression?

If you want to showcase high-quality images on your website, then you can turn off image compression in WordPress. You can do that by adding this part of code in your functions.php : add_filter(‘jpeg_quality’, function($arg){return 100;}); Or you can create your plugin : <?php /** * Plugin Name: Remove WordPress Image Compression * Plugin URI: … Read more

Theme compression/ minifying or W3 Total Cache – which should I use? [closed]

I find that W3 Total Cache works well for me in doing minifying and gzipping. (I’m not sure about the others.) More generally, if there’s a plugin that does something, I use the plugin. It’s very rare to see a do-it-all theme do something better than a specialized, single-function plugin, particularly when that plugin is … Read more

Disable all resizing and compression

Turns out I was never too far off. Adding this to your functions.php will stop all resizing and compression of images uploaded to the media folder add_filter( ‘big_image_size_threshold’, ‘__return_false’ ); add_filter( ‘jpeg_quality’, function($arg){return 100;} ); update_option( ‘medium_size_w’, 9000 ); update_option( ‘medium_size_h’, 9000 ); update_option( ‘large_size_w’, 9000 ); update_option( ‘large_size_h’, 9000 ); Hope this helps someone … Read more