Hello @phoenixblue,
There are some methods to turn it off.
To disable WordPress’s automatic image compression, you add the following code to the function.php file:
function disable_image_compression() {
add_filter('jpeg_quality', '__return_false');
}
add_action('init', 'disable_image_compression');
Also, you can use the following code for specific file types:
function disable_image_compression_for_jpg() {
add_filter('jpeg_quality', '__return_false', 10, 2);
}
add_action('init', 'disable_image_compression_for_jpg');
Another method is using a third-party plugin(s) for this. So you can search in the WordPress repository to find a plugin to do this: https://wordpress.org/plugins/.
Furthermore, this feature is available in some optimizer plugins. You can find this feature by checking the plugin features if you are probably using one of them.
I hope it helps.
Best Regards
Thanks for the reply. I don’t know why but it still doesn’t work for me. I added the code, but when I upload a photo, it still looks blurrier than the original. I tried a plugin that also didn’t work.
Sometimes, it seems to work, then after a while, the picture goes back to being blurry. It makes no sense.
Update: I solved my problem. Apparently, my hosting company was compressing my images without my knowledge. They had a CDN feature auto enabled that was compressing my images. I turned it off, and everything is fine now.
I’m glad that you were able to resolve that.