Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
2.24.14, 2.26.10, 2.28.00
-
None
-
Flagged
Description
Image variants that have the same width&height as the original image are skipped in the ScaleImageOperation, missing out on possible compression/optimization settings.
See line 284 in class ScaleImageOperation:
if (resizeRatio == 1.0d || (resizeRatio >= 1.0d && !upscaling)) {
Could be replaced with
if (resizeRatio > 1.0d && !upscaling) {
This will lead to a slight drop in overall performance, but only for images that have exactly the same dimensions as the original, so not very important.
Attachments
Issue Links
- causes
-
CMS-9335 Regression: original image data is no longer stored as-is
- Closed
- is forward ported by
-
CMS-8666 Forward port to 7.9: Image variants with same dimensions as original are skipped from scaling, missing out on compression/optimization
- Closed
-
CMS-8667 Forward port to 7.10: Image variants with same dimensions as original are skipped from scaling, missing out on compression/optimization
- Closed