Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 798 forks source link

Tiled Galleries: add option to limit the size of each Tile #320

Open jeherve opened 10 years ago

jeherve commented 10 years ago

It would be nice to add an option to limit the size of the images generated, to avoid too large images in a Tiled Gallery. That would also be an indirect way to split the gallery into more columns.

Suggested here:

jeherve commented 10 years ago

In my tests, adding a gallery to a page, and switching for a template using a 625px content width to a full-width 960px content width (with Twenty Twelve), the number of columns in the gallery didn't increase; instead, the size of the images in the gallery increased.

The option I mentioned above would allow users to limit the size of the images used in a gallery.

rase- commented 10 years ago

It would be even cooler if the layout is adjusted completely automatically by looking at natural image dimensions. This wouldn't cause so much trouble for the mosaic layout, but might be tricky for square and circle galleries.

dzver commented 9 years ago

Currently the Tiled Gallery has shapes named Two, Three, Four, Five. Last two can get some adjusting so that they are more used with wider themes. We could also add a shape that puts variable number of photos per row.

ChrissiePollock commented 9 years ago

Here is a similar yet opposite request: Could the programmers please consider adding a setting where site admins can specify a minimum size for gallery mosaic thumbnails? +2293790

dzver commented 9 years ago

What do you mean?

s-a-s-k-i-a commented 9 years ago

Has any of this made its way into the jetpack gallery code?

I'd love to have an option where I could set the number of images per row as well as the max image size for example. And also when using lets say 5 images per gallery, it would NOT resize 2 images over the top to make it fit the content width, but instead allow the images to be same sized and have one spot just empty int he row. 3 in one row, 2 in the other without resizing overboard.

jeherve commented 9 years ago

@s-a-s-k-i-a We haven't made any of the changes mentioned here yet, but we'll post here when we do.

s-a-s-k-i-a commented 9 years ago

thanks for your reply. In the meantime I am using a transparent placeholder image when using square tiled gallery and having an odd total number of images. That way all images are same sized.

Instead of a transparent image occupying the even spot to keep that gallery design from breaking, one could also use an image showing some kind of info. For example in a staff display gallery, you could add an image which expresses that there are positions available at the company and that they are currenty hiring.

htrex commented 8 years ago

It's not yet possible to adjust the max number of tiles per row, or max image width, or anything that would allow to fit more images per row. Please, can someone which is part of the team give an insight if there are chances this feature request is going to be implemented?

jeherve commented 8 years ago

Please, can someone which is part of the team give an insight if there are chances this feature request is going to be implemented?

That's not on our roadmap at the moment, but this issue is still open and we'll consider it when we start working on Tiled Galleries again. Since you've commented here, you should receive a notification for each new comment here so you'll be one of the first to know when we pick this task up!

annezazuu commented 7 years ago

2913495-t

lvl99 commented 7 years ago

WP Tiles is a gallery plugin which allows a short text code to define the sizes of the items within the gallery. Perhaps Tiled Gallery could borrow/adapt this particular idea to allow finer control of the widths/columns that images take.

For example, sometimes when we use two landscape pictures then a portrait, Tiled Galleries will stack the two landscapes and put the portrait to the right:

LLL|P
---|P
LLL|P

What would be nice is to define the min/max column widths one image could take. For instance, if I wanted the first Landscape to mimic this layout of Landscape image taking up full width at top, with landscape next to portrait:

LLLLL
LLLLL
-----
LLL|P

It'd be nice to specify something like a layout attribute in the shortcode: [gallery type="rectangular" ids="1,2,3" layout="F,A,A"] F: full width A: auto width

What would be alternately/additionally cool is to insert breaks into the image sequence, to force an image to go to the next row. Perhaps that could just be in the ids attribute: [gallery type="rectangular" ids="1,LB,2,3"] LB: line break

It could be that this layout value can be repeated when it reaches the end of the attribute's definition, i.e. cycles back to the start of the layout scheme when placing images, e.g:

LLLLL // 1: F => Landscape sized Full width
LLLLL //
----- //
LLL|P // 2 & 3: A => Landscape and Portrait sized Auto width
----- //
PPPPP // 4: F => Portrait sized Full width (since layout scheme has 3 items, it now loops/cycles/wraps)
PPPPP //
PPPPP //
PPPPP //
----- //
PP|PP // 5: A => Portrait sized Auto width
PP|PP // 6: A => Portrait sized Auto width
----- //
LLLLL // 7: F => Landscape sized Full width (since layout scheme has 3 items, it now loops/cycles/wraps again)
LLLLL //
----- //
LL|LL // 8 & 9: A => Landscapes sized Auto width

[gallery type="rectangular" ids="1,2,3,4,5,6,7,8,9" layout="F,A,A"]

lamdayap commented 7 years ago

3248543-t

StefMattana commented 6 years ago

Also reported and asked on https://wordpress.org/support/topic/max-images-across-tiled-mosaic/ User would like to have the option of selecting the number of images to place in any rows as per this previous comment/request :)

stale[bot] commented 5 years ago

This issue has been marked as stale. This happened because:

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

github-actions[bot] commented 3 years ago

This issue has been marked as stale. This happened because:

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.