-
Notifications
You must be signed in to change notification settings - Fork 13
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
BUGFIX: Respect aspect ratio #66
Conversation
I would suggest to use I think following code in https://github.com/sitegeist/Sitegeist.Kaleidoscope/blob/main/Resources/Private/Fusion/Prototypes/Image.fusion :
probably should be more like
also the whole thing should probably use @Private instead of the nested Component nowadays. |
If @Private is used this could also look more like
|
I'm not sure I understand. I'm using The Sitegeist.Kaleidoscope/Classes/Domain/AbstractScalableImageSource.php Lines 55 to 61 in df39bd6
|
I'm doing this:
This should result in 3 images being generated for height 40, 80, 120 and their aspect depended width. |
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.
Now i got it ... fair point. Makes total sense.
I'm not sure if Kaleidoscope should already move to I really love |
If a feature release adjusts the requirement to 8.3||9.0 I see no problem. Existing projects can always use the version they already have. New projects should be 8.3 or 9 anyways. |
Use targetWidth and targetHeight for aspect ratio calculation when both are set. Otherwise this leads to unwanted results. We observed this behaviour with
srcset
and1x, 2x
andimageSource.withHeight(40, true)