Details
-
Bug
-
Resolution: Fixed
-
Medium
-
1.13.5, 2.5.8
-
None
-
None
Description
All "scaledown" aliases (https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Bundle/EzPublishCoreBundle/Resources/config/image.yml#L174) are using the "outbound" thumbnail mode. This is because the Liip thumbnail filter loader is expecting the text "inset" (https://github.com/liip/LiipImagineBundle/blob/master/Imagine/Filter/Loader/ThumbnailFilterLoader.php#L25) instead of "ImageInterface::THUMBNAIL_INSET" (https://github.com/ezsystems/ezpublish-kernel/blob/7.5/eZ/Bundle/EzPublishCoreBundle/Imagine/Filter/Loader/ScaleWidthDownOnlyFilterLoader.php#L30). As a result, the image aliases are subject to undesirable cropping.
Steps to reproduce:
1. Create a new image variation as follows (please verify presented configuration against scaleheightdownonly and scalewidthdownonly filters):
image_variations:
test:
reference: null
filters:
- { name: geometry/scaledownonly, params: [50, 50] }
2. Clear the Symfony cache and persistence cache:
php bin/console cache:clear
php bin/console cache:pool:clear cache.app
3. Create a new article and add an image with a width bigger than 50 to see the result of scaling.
4. Apply "test" variation to this image.
5. Publish the article.
Result:
The image is properly scaled but unneeded cropping is applied.
Expected result:
The image should be only scaled.