• As I mentioned here, when I upload a 1,03 MB original PNG image, WordPress is creating a “-scaled” version with 3,2 MB.

    This is ridiculous, insane.
    What’s worse is that the “-scaled” version is placed as the official one!
    That is, WordPress is making things worse!
    Not to mention that this disrupts the operation of other plugins, such as Imagify, which, in its free version, it only works with images below 2.0 MB.

    That is, if WordPress simply did not make this mess, everything would be better.

    At the same time, I can’t disable the “-scaled” version, once Disable “BIG Image” Threshold and add_filter( 'big_image_size_threshold', '__return_false' ); are not working.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think part of this is fixed with https://core.trac.www.ads-software.com/changeset/46809
    on https://core.trac.www.ads-software.com/ticket/48736 but there is also
    https://core.trac.www.ads-software.com/ticket/48842 which was just changed to go into WP 5.4 instead of 5.3.1 next week.
    Feel free to add comments on tickets if you have more information that will help. And open a new one if you don’t find your problem in a search in Trac.

    Thread Starter rogeriodec

    (@rogeriodec)

    How to disable this function, once add_filter( 'big_image_size_threshold', '__return_false' ); is not working?

    I haven’t used this filter before but what I gather from what little I have read is the big_image_size_threshold set a max size for the image and scales it down if it larger then the size given. The code add_filter( ‘big_image_size_threshold’, ‘__return_false’ ); disable the feature in WordPress 5.3 or older. It look like this featured has just been added in October. I couldn’t find any documentation on it.

    Thread Starter rogeriodec

    (@rogeriodec)

    I put this code in my theme’s child functions.php:

    function check_image_size($imagesize, $file, $attachment_id){
        return 10000;
    }
    add_filter( 'big_image_size_threshold', 'check_image_size',10,3 );

    This way, only images above 10,000 px would be rescaled.

    However, it insists on creating a scaled version 2048 px high and still puts the “-scaled” version as the default image …

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“-scaled” image size 3x greater than the original image’ is closed to new replies.