Set image size on media and text block with a function

I’m using the Media & Text block within Gutenberg. You can adjust the size of the image by dragging the small blue circle:

WordPress Media & Text Block

Looking at the Media & Text settings on the right, it doesn’t look possible to select the image size.

When using the stand alone image block, you can adjust the image size, like so:

Media Size

Is it possible to set an image size using a function for this block type? I need the design to be consistent on the front-end.

1 Answer
1

The image size dropdown was added in PR #24795 which was included in Gutenberg v9.1 and then included in WordPress 5.6.

Leave a Comment