Title: tile_size setting in shortcode
Last modified: February 8, 2022

---

# tile_size setting in shortcode

 *  Resolved [rmniemela](https://wordpress.org/support/users/rmniemela/)
 * (@rmniemela)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/tile_size-setting-in-shortcode/)
 * 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, 4 months ago by [rmniemela](https://wordpress.org/support/users/rmniemela/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftile_size-setting-in-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/tile_size-setting-in-shortcode/#post-15343256)
 * 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](https://wordpress.org/support/users/rmniemela/)
 * (@rmniemela)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/tile_size-setting-in-shortcode/#post-15343332)
 * 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](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/tile_size-setting-in-shortcode/#post-15343343)
 * 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](https://wordpress.org/support/users/rmniemela/)
 * (@rmniemela)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/tile_size-setting-in-shortcode/#post-15343358)
 * 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.

 * ![](https://ps.w.org/photonic/assets/icon.svg?rev=1972449)
 * [Photonic Gallery & Lightbox for Flickr, SmugMug & Others](https://wordpress.org/plugins/photonic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photonic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photonic/)
 * [Active Topics](https://wordpress.org/support/plugin/photonic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photonic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photonic/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [rmniemela](https://wordpress.org/support/users/rmniemela/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/tile_size-setting-in-shortcode/#post-15343358)
 * Status: resolved