Deprecated: Function seems_utf8 is deprecated since version 6.9.0! Use wp_is_valid_utf8() instead. in /home/dplugins-code/htdocs/code.dplugins.com/wp-includes/functions.php on line 6131

Deprecated: Function seems_utf8 is deprecated since version 6.9.0! Use wp_is_valid_utf8() instead. in /home/dplugins-code/htdocs/code.dplugins.com/wp-includes/functions.php on line 6131
Remove WordPress default image compression – Code DPlugins

Remove WordPress default image compression

By default, WordPress compresses your images for better performance.

Every time you upload a JPEG image in WordPress, it would automatically compress the image to 90% quality.

All you need to do is paste the following code in your custom plugin’s functions.php


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

When you do make these image quality changes, you want to make sure that you regenerate your thumbnails.

Code snippet taken from this source.

Click to Copy