Gutenberg: Edit image settings when in a gallery block

Created on 27 Nov 2018  路  5Comments  路  Source: WordPress/gutenberg

Right now if you create a gallery block there is no way to edit the image settings even when you highlight and select one image inside the gallery block.

This is incredibly annoying if you want to switch image size. You basically are forced to covert the gallery block into blocks of single images, make your changes to the image settings, and then recombine them in a gallery block. That or flip into the code view.

[Block] Gallery [Type] Enhancement

Most helpful comment

@swissspidy I agree that galleries should want the same image size, but what happens if you make a gallery with two columns and 3 images? You end up with 2 images talking up 50% of the content width and one image bellow taking up 100% the content width. That is a scenario where one might want to use a smaller image size on the first two images and a larger one on the 3rd.

Another similar example is that when images are in a Gallery block you can not click an image and add the alt text. It's another scenario where you either have to flip into code view or unbundle the gallery block make your changes and then bundle it again.

All 5 comments

So you want to change the image size for a single image inside the gallery?

I don't think that is or should be possible. Galleries are meant to show all images in the same size.

I think they mean they'd like the option to change the image size for all gallery images at once, similar to how the gallery works in the classic editor (I think the note about selecting one image was just to show they thought they would be able to access the image size settings that way but weren't able to).

Adding some screenshots for comparison:

When creating or editing a gallery in the classic editor, I see "Gallery Settings" options for: Link To, Columns, Random Order, Size:

screen shot 2018-11-27 at 12 26 53 pm
Seen at https://tan-otter.jurassic.ninja/wp-admin/post-new.php using WordPress 4.9.8 (no Gutenberg) using Firefox 63.0.3 on macOS 10.13.6.

In Gutenberg, I don't see any options for "Gallery Settings" such as image size:

screen shot 2018-11-27 at 12 27 59 pm
Seen at http://localhost:8888/wp-admin/post.php?post=43&action=edit running WordPress 4.9.8 and Gutenberg ef596ca85 (>4.5.1) using Firefox 63.0.3 on macOS 10.13.6.

Related: #7504 discusses similar image details settings for the image block.

@swissspidy I agree that galleries should want the same image size, but what happens if you make a gallery with two columns and 3 images? You end up with 2 images talking up 50% of the content width and one image bellow taking up 100% the content width. That is a scenario where one might want to use a smaller image size on the first two images and a larger one on the 3rd.

Another similar example is that when images are in a Gallery block you can not click an image and add the alt text. It's another scenario where you either have to flip into code view or unbundle the gallery block make your changes and then bundle it again.

Closing this as a duplicate of https://github.com/WordPress/gutenberg/issues/11436 as the desired fix is to achieve some degree of parity between the Image and Gallery settings.

Was this page helpful?
0 / 5 - 0 ratings