Support » Plugins » Disabling image compression in the theme

  • Hi, I have setup a website to display high quality photos that are fully processed outside of wordpress and optimised for size also.

    I do not want wordpress to compress the images uploaded, they do not need it.

    I have modified the core files to change 90 to 100 in


    But when upgraded this is overwritten. Can this change be made in functions.php that will avoid changing core files? I do not want to use a plugin if I can help it.

    Is it as simple as putting the following in functions.php

    ‘function filter_image_quality() {

    $image_quality_value = 100;

    return $image_quality_value;

    Thanks for any help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi


    Forum Moderator

    Do not modify WordPress core files.

    I do not want wordpress to compress the images uploaded

    Why? Beyond “they do not need it”?

    Hi esmi,

    Files are optimised in photoshop and lightroom before import. Why would you want to further compress a file when it has been made the right size and quality for the website.

    I think wordpress should not hardcode the 90% into the core files but make it an option with a caution about quality and loading times.

    I do not want to modify core files whic is the reason for the post.



    Forum Moderator

    Perhaps it will bypass the compression step.

    Hi Esmi,

    Yep, looks promising – might need some user education on FTP – will test this out.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disabling image compression in the theme’ is closed to new replies.