• Resolved rmniemela

    (@rmniemela)


    I am having a really hard time trying to figure how to use the tile_size option in the shortcode. I just can’t get it to work properly.

    My default minimum tile height for the random style is 320 and that’s what’s used, no matter what I set in the shortcode.

    Have stripped down the shortcode to the bare basics (using the shortcode generator).

    Are you not able to use the tile_size in the shortcode?

    Code used: [gallery type='google' view='photos' album_id='AEhvPCakCOqgxE0MxEZ-9Y7m95v1mHGOcvEZQaBNEejRP7epuCsD1vwQ5iMWzuKtID8Q7UkcnFxy' main_size='1600' tile_size='450' layout='random']

    • This topic was modified 4 years, 1 month ago by rmniemela.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    The tile_size attribute is meant for optimization of image loads – it has very little bearing on your layout.

    An original image from Google might be 6000px wide, so if you had 100 such images, you would end up adding 500MB+ to your page’s load, which would considerably slow down your page. The tile_size is intended to help you save some resources when you load the images. A tile size of 450 will tell Google to serve an image that is 450px, which will result in an image that is about 1% of the original 6000px image. This would mean that your images will only add about 5MB to the total load of the page.

    The minimum tile height is what governs the layout – it ensures that your images in the justified grid are never less than the minimum height. Now, if you have used a tile size lower than the minimum tile height, that will cause pixelation of the images.

    Thread Starter rmniemela

    (@rmniemela)

    Ah. Ok. So what I am hearing then is that there is no way to dictate the height of images for an individual grid. It’s a default setting that applies to all grids on our site, and there’s no shortcode option that would change it for a particular grid.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Yes, that’s correct. The “dumb” grids like the square thumbnails let you pick individual sizes. The automatic layouts don’t let you define a custom size, since all the calculation is algorithmic.

    Thread Starter rmniemela

    (@rmniemela)

    Ok thanks. I was sure that I read something about controlling the fluid layouts, but I’m obviously wrong on this lol.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘tile_size setting in shortcode’ is closed to new replies.