-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZP-31258: Use "inset" for "scaledown" aliases to avoid undesired image cropping #2907
EZP-31258: Use "inset" for "scaledown" aliases to avoid undesired image cropping #2907
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, but please rebase this on 6.13 branch, from my perspective this is a bug (wrong use of Liip Imagine API).
9243e36
to
dedc6ec
Compare
Rebase on 6.13 branch complete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterkeung please also change the target branch to 6.13
.
Target changed |
@adamwojs In this particular case, given the example you've shown I cannot imagine someone expecting this buggy behavior ;) |
I mean the dimensions of the resulting image, not cropping (sorry for not being precise) 😛 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA Approved on eZ Platform EE v2.5.8 with diff.
QA Approved on eZ Studio v1.13.5 with branch.
@alongosz could you merge this up? |
Thank you @peterkeung 🎉 |
6.13
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.