Prevent WordPress from Scaling Large Images

21 Comments

  1. doesntMatter

    Hi,
    this doesn’t work anymore. Neither the snippet for removing the threshold nor the one to adjust it do anything.

    1. I haven’t heard that this filter hook has been deprecated. What is the basis of your theory?

  2. Jay

    It works! Thank you so much!

    1. Okay great to hear Jay, thanks for chiming in! A previous commenter stated that it no longer works, and I had yet to test. Cheers.

  3. I just tried this and it works. I now have a lot of images to upload and attach to portfolios. Thank you very much!

    1. Awesome, glad to hear it works Carole!

  4. Hi! This may solve a problem I’m having with image resolution, but what will it do for page load times? I have a client whose using large images of gardens (he’s a garden designer). He sends me HUGE images. I reduce pixel size, then compress, and the image looks good…until it gets into the slider. Even then, some are better than others. I’m on a staging site at the moment, link included. Thanks, Bryan! Best wishes, Valerie

    1. Hi Valerie,
      Disabling the WP scaling feature and posting larger images will certainly have a negative affect on load time. If you’re struggling with image optimization I wouldn’t use this filter to solve that issue.

      I checked the link you posted but couldn’t see the sliders. If you want me to take a closer look, jump on a chat during our business hours (8-6 Mountain time) and I should be able to give you some guidance.

  5. Hi! Many thanks for this solution. The WP Theme Editor refused to save the filter, but I used a custom function plugins, and it all went well. My website is a comics site, I upload really tall images (sometimes over 10K px tall!), so I had to bypass this new feature. I hope that other webcomic creators that may be searching for an answer get here. Thanks again!

  6. Thank you so much! It works like a charm!

    What is the ‘cinch_image_threshold’,10,3 at the end? Saw someone recommend 10,4 instead.

    1. Hi Nicolai, glad it worked for you.

      That last parameter is $accepted_args and can probably be set to one. I’m not sure why I put it at 3…

  7. Shimon

    Unfortunately, the code no longer works, but there is a fix!
    Just change to the following filter:

    add_filter( ‘intermediate_image_sizes_advanced’, ‘__return_false’ );

    Thank you for the original post!!

  8. Lux

    Not working for me, sorry. I used My Custom Functions plugin but it still scales to 2560px… this is crazy anyway wordpress should give us the option, some of us actually know what they are doing with big images… :-(

  9. It works, just add priority, like so:

    add_filter('big_image_size_threshold', '__return_false', 999, 1);

  10. Kevin

    Works for me but I did not update wordpress 5.9 yet

    Thanks for the tip!

  11. Nicholas

    Just tried this on WP 5.9 and it works like a charm. Thank you, Bryan!

  12. Sarah

    The filter worked, but now i get a -rotated suffix in the name of my new pictures.

  13. Hi not working for me .. using WordPress 6.0.1

    Is there a new bit of code to make it work. Just driving me crazy!

    1. Hi Amanda, as far as I can tell the filter is active, but you can also try this:
      add_filter( 'big_image_size_threshold', function(){ return false; } );

  14. Ryan

    The new code posted above with the priority set worked like a champ for me today!

    add_filter(‘big_image_size_threshold’, ‘__return_false’, 999, 1);

    My photographer customer is now happy.

  15. Awesome, this snippet works perfectly. Just what I needed! Thanks

Comments are closed.