Prevent WordPress from Scaling Large Images

11 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…

Leave a Reply

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.