
Mika MAtikainen
Apr 15, 2020 · 4 min read
Put an End to Automatic JPEG Compression
If you’re using a third-party image optimizer like Optimus or WP Smush, you might decide you want to disable the built-in WordPress image optimizer which is set to 90% out of the box.
[code lang=”php”]
add_filter( ‘jpeg_quality’, ‘smashing_jpeg_quality’ );
function smashing_jpeg_quality() {
return 100;
}
[/code]