• Resolved cpbradshaw

    (@cpbradshaw)


    Hi all,

    I’m hoping somebody can help here. I’ve set my maximum width and height to 1024px in the settings for everything but backgrounds and headers, etc.

    I’m after some clarity here. For example, if I have a file that is 800 x 1500, currently Imsanity does not resize as one of the dimensions matches the threshold for the maximum dimension (height in this instance), however, it will still be quite a large file.

    Can/does Imsanity not look at that same file and say “Oh, one of the dimensions breaks the threshold, better resize that (maintaining aspect ratio) to the threshold amount?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Yes, it should do that already. For example, you have that image at 800×1500, if you have the dimensions set to 1024×1024, it should be resized.

    Now, there are some images that will not compress well, so that even though the dimensions are smaller, the filesize is not reduced, which defeats the purpose of the plugin. So any image that gets larger in filesize during the scaling operation will not be processed.

    One other consideration is to make sure you don’t have the JPG quality set too high, never go higher than 90, but ideally keep it in the 80-85 range. If you go too high, the scaling process will create very bloated images.

    Thread Starter cpbradshaw

    (@cpbradshaw)

    Thanks for your reply. See the attached image

    Despite the Max width/height being 1024px, this image does not resize as one of the dimensions passes the rule.

    Plugin Author nosilver4u

    (@nosilver4u)

    That image is exactly as I said, the filesize gets bigger when you scale it down: “Resized image was larger than original”

    Make sure your JPG quality is set to a sane value. If it is, then there’s nothing else to be done with that image.

    Thread Starter cpbradshaw

    (@cpbradshaw)

    Okay, maybe I’m missing something here. Resizing is dimensional, and of course impacts the KB size too, however, I fail to see how reducing the size of an image, even at 100% quality, would result in a “larger” dimensionally or otherwise, image if Imsanity is maintaining the aspect ratio as it should.

    Plugin Author nosilver4u

    (@nosilver4u)

    Regarding the quality, see https://docs.ewww.io/article/12-jpg-quality-and-wordpress — especially note what happens to filesize as the quality level is increased.

    As crazy as it may seem, scaling an image down does not equate to a linear decrease in filesize. I’ll not bore you (too much) with the details, but essentially, scaling introduces distortion. And though we may not even see that distortion (though sometimes you can), the JPG compression algorithm is affected by it, and becomes less efficient as a result.

    Thread Starter cpbradshaw

    (@cpbradshaw)

    Oh okay, I honestly wasn’t aware of that….and I call myself technical! ??

    Thanks for the info!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Rezize using OR, not AND’ is closed to new replies.