• 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

    wp-admin/includes/image-edit.php
    wp-admin/includes/image.php
    wp-includes/media.php

    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)
  • Do not modify WordPress core files.

    I do not want wordpress to compress the images uploaded

    Why? Beyond “they do not need it”?

    Thread Starter word-wiz

    (@word-wiz)

    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.

    Try https://www.ads-software.com/extend/plugins/add-from-server/
    Perhaps it will bypass the compression step.

    Thread Starter word-wiz

    (@word-wiz)

    Hi Esmi,

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

    Thanks.

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