Disable JPG / JPEG image compression on WordPress web site
If you are making WordPress web site where image quality is the top priority, then this snippet is a must have. It’s good to know it!
// Disable JPG compression
add_filter('jpeg_quality', function ($arg)
{return 100; });
add_filter('wp_editor_set_quality', function ($arg)
{return 100; });
As usually, place it into your function.php file.