You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Image: Include the height and width within transformations. #38528
When pasting certain image HTML, Gutenberg should attempt to pick up the height and width of the img. Prioritizing the style e.g. style="height: 100px; 200px;", then falling back to the width and height attributes.
This ensures that the output is still visually similar to the source HTML just in case the original image source is much bigger than the specified height and width.
Example markup to pick up during the transformation:
Activity
Mamaduka commentedon May 14, 2025
Closing as duplicate of #35050.