Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Quality of images

Discussion in 'Misc WordPress Requests' started by Achyuth Ajoy, Oct 8, 2017.

  1. Achyuth Ajoy


    Reply To: Quality of images, by Achyuth Ajoy

    WordPress automatically resizes, crops and reduce quality of uploaded images when converting to the sizes specified in the theme. Your original image remains unchanged.

    When you hover over the image, you are seeing the original image without loss in quality. On normal view you see the resized image set by the theme you’re using.

    To disable this feature paste the following code in your theme functions.php file.
    add_filter('jpeg_quality', function($arg){return 100;});

    Note: This only works for newly images uploaded after the code update.

    Hope this helps.
    Good day!

    Reply To: Quality of images

Share This Page

Monarch Social Sharing Plugin