Related Posts



How To Stop WordPress From Compressing JPG Files

WordPress Automatic JPG File/Image Optimization

WordPress automatically compresses JPG files, which can hurt your websites load speed and SEO. JPG is related to the Joint Photographic Experts Group (JPEG) image file format. JPG files also have 2 sub formats, JPG/Exif which is used in digital cameras and photographic equipment, and JPG/JFIF which is often used on the internet.

  • To maintain high quality JPG files exactly how you uploaded them, disable WordPress from automatically compressing your JPG files.

Copy and paste this code into your current theme’s functions.php file to disable WordPress compression:

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


banner-1

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

13 replies to “How To Stop WordPress From Compressing JPG Files

  1. Pingback: Compressing jpg | Kidentityinter