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;});
Sean Doyle
Sean is a tech author and security researcher with more than 20 years of experience in cybersecurity, privacy, malware analysis, analytics, and online marketing. He focuses on clear reporting, deep technical investigation, and practical guidance that helps readers stay safe in a fast-moving digital landscape. His work continues to appear in respected publications, including articles written for Private Internet Access. Through Botcrawl and his ongoing cybersecurity coverage, Sean provides trusted insights on data breaches, malware threats, and online safety for individuals and businesses worldwide.
View all posts →

13 Comments
[…] How To Stop WordPress From Compressing JPG Files – Bot CrawlMay 15, 2012 … WordPress automatically compresses JPG files, which can hurt your websites load speed and SEO. To maintain high quality JPG files exactly … […]
RT @BotCrawl: How To Stop WordPress From Compressing JPG Files http://t.co/svTuBSuh
RT @WPsean: How To Stop WordPress From Compressing JPG Files http://t.co/svTuBSuh
How To Stop #WordPress From Compressing JPG Files http://t.co/m3x4Aw8a
Disable #WordPress from compressing JPG images: http://t.co/yLYmeWIh
– free #Snippet
Disable #WordPress from compressing JPG images: http://t.co/yLYmeWIh
Disable #WordPress from compressing JPG images: http://t.co/yLYmeWIh
How To Stop WordPress From Compressing JPG Files http://t.co/hUuJIaR5
Disable #WordPress from compressing JPG images: http://t.co/yLYmeWIh
Works like a charm!
Thank you, very cool.
How To Stop WordPress From Compressing JPG Files http://t.co/svTuBSuh
Thanks