How to disable WordPress automatic image compression?
-
Hi. Recently, I noticed that all my images are lower quality after I upload them on my website. I found out that WordPress automatically compresses images, which I want to turn off or disable. I looked online and tried putting many variations of a code, but none of them worked. Even the SMNTCS plugin (which supposedly adds the code) didn’t work either.
I tried “add_filter(‘jpeg_quality’, function($arg){return 100;}); add_filter(‘wp_editor_set_quality’, function($arg){return 100;});”
“add_filter(‘jpeg_quality’, function($arg){return 100;});”
and some other variations in my functions.php, but none of them work. After I upload an image, I open it in full-size and I can immediately see the quality went down. How can I turn off wordpress’s automatic image compression?
The topic ‘How to disable WordPress automatic image compression?’ is closed to new replies.