Skip to content

Conversation

Mati365
Copy link
Member

@Mati365 Mati365 commented Apr 8, 2025

Suggested merge commit message (convention)

Fix (image): Consume image_resize class and aspect-ratio style during the upcast of the images. Closes #18287


Additional information

Previously, the image_resize class was incorrectly consumed by the General HTML Support (GHS) plugin. This class is meant to be handled by the ImageResize plugin only, as it is automatically applied by it. This PR ensures that GHS no longer consumes this attribute.

@Witoso
Copy link
Member

Witoso commented Apr 8, 2025

Notice aspect-ratio is not consumed as well in the second video.

@Witoso
Copy link
Member

Witoso commented Apr 11, 2025

aspect-ratio consumption should not be connected to the resize, if you load image, and setData/getData it's also not consumed.

@Mati365
Copy link
Member Author

Mati365 commented Apr 11, 2025

@Witoso Isn't it too generic assumption? I enforced it to maximize backward compatibility, as aspect-ratio might be part of the "plain" GHS styling.

@Witoso
Copy link
Member

Witoso commented Apr 11, 2025

I would need @mmotyczynska to check but this looks as an improper working of the image consumption. Even if GHS styles something, we normalize it to the feature.

@Mati365
Copy link
Member Author

Mati365 commented Apr 11, 2025

I moved aspect-ratio consume to ImageSizeAttributes. fyi @niegowski

@Mati365 Mati365 requested a review from niegowski April 11, 2025 10:36
@mmotyczynska
Copy link
Contributor

aspect-ratio consumption should not be connected to the resize

True.

@Mati365 Mati365 merged commit 361134d into master Apr 14, 2025
8 checks passed
@Mati365 Mati365 deleted the ck/18287 branch April 14, 2025 09:35
Mati365 added a commit that referenced this pull request Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image resize is not correctly consumed with GHS
4 participants