gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Add support for aspect ratio on wide and full images

Open richtabor opened this issue 3 years ago • 4 comments

A follow-up to https://github.com/WordPress/gutenberg/pull/53181, which opted out wide and full width images from using the new aspect ratio control. It'd be nice if the aspect ratio control was available regardless of the wide/full width value.

Visual

https://github.com/WordPress/gutenberg/assets/1813435/642475b9-7af8-4546-b0f1-d75d29611b4b

richtabor avatar Aug 14 '23 20:08 richtabor

+1

gyurmey2 avatar Apr 24 '24 04:04 gyurmey2

Noting that the Cover block does support aspect ratio, while in full/wide alignment:

CleanShot 2024-04-24 at 16 14 28

richtabor avatar Apr 24 '24 20:04 richtabor

I want to work on this.

Swoyamjeetcodes avatar Jan 11 '26 04:01 Swoyamjeetcodes

Hi! I’ve opened a PR that addresses this issue and restores the aspect ratio control for wide and full aligned Image blocks:

➡️ https://github.com/WordPress/gutenberg/pull/74519

Feedback is very welcome. Thanks!

Swoyamjeetcodes avatar Jan 11 '26 09:01 Swoyamjeetcodes