• Resolved summoner

    (@summoner)


    Hi there,

    GB 7.2 finally introduces the image size setting for the gallery block.
    Meow gallery has not been updated yet to also handle that property, as a consequence if i insert a core gallery block, then i can set the image size that will be served to the client. I can also convert the core gallery block to a meow gallery block while losing the option to set the image size. Strangely enough if i convert back to a core gallery block, the option will not reappear until i delete and reinsert a core gallery block (probably because the conversion process will not find that property in the meow gallery block and the core gallery does not append a default size in this case).

    However GB 7.2 still lacks the ability to set the image size in case you select media file under linking options… would be nice to also implement this option to meow gallery.

    • This topic was modified 4 years, 10 months ago by summoner.
Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hello ??

    I have tried it, and I am not so sure what to think of it. The (new) Gutenberg Gallery does only write the size directly into the src-set. That’s not going to really display that specified size in fact, nor giving good results. It’s basically… just gives a chance to the user to play with this attribute, but the result is a bit random.

    The Meow Gallery adapts the size attribute depending on the layout and number of photos, so it does it dynamically already. You can also override it through the mgl_sizes filter.

    If you are interested, please have a look at the wp_get_attachment_image_attributes function in the mgl_run.php file. If you have a better idea than mine, I am very interested in making it better. I actually spent quite some time on it, and of course letting the size would be much easier, but it doesn’t make much sense with src-set (that size attribute depends on too many things).

    I am really interested in knowing everyone’ thoughts.

Viewing 1 replies (of 1 total)
  • The topic ‘Gallery image size’ is closed to new replies.