Dont generate image scales for sizes larger than the original
It would be nice if we didn't generate image scales that are larger than the max dimensions of the uploaded image. This seems to produce some strange anti-optimizations. For example, if I upload a highly compressed 150px image, then insert the image_mini (200px) rescale version, what gets inserted will be a 150px image that is actually a bit larger in filesize than the image I originally uploaded. This can be avoided by inserting "original" image instead, but I see a lot of users accepting the default (image_mini) out of ignorance. Plone should be smarter about not offering options that don't make sense.
4 comments
-
anthonygerrard
commented
Agree
The editors should also know that the larger sizes aren't available as well: when you go to insert image kupu should only the sizes that are available -
AdminAlexander Limi
(Admin, Plone)
commented
This really sounds like a bug that should be fixed in PIL? Or at least added as an optional behavior?
-
Alec Mitchell
commented
We'd want to keep those aliases around and just direct them to the original. I'm sure there are plenty of sites and products which just expect certain image scales to exist.
-
Encolpe Degoute
commented
Yes, it could be cool... see an 32x32 icon scaled with bigger size is terrible.