Force Perfect JPG Images

WordPress automatically compresses images to 90 per cent of the original. While this isn’t such a big deal for most site owners, some people, like photographers, miss this extra 10 per cent.
To ensure the images on your site are at 100 per cent quality, add this to your theme’s functions.php file:


 * Force Perfect JPG Images
if ( ! function_exists( 'ns_high_jpg_quality' ) ) {
function ns_high_jpg_quality() {
  return 100;
add_filter( 'jpg_quality', 'ns_high_jpg_quality' );



I am a Freelance Web Developer and WordPress Expert based in London with a wealth of website development and support experience. I am great at problem solving and developing quick solutions.


Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.


    Fill in the form below to make an enquiry or find my contact details on my contact page.

  • This form collects your name and email address so that I can respond to the enquiry(ies) that you submit via this website. Please check my privacy policy for the full story on how I use, protect and manage your submitted data.