Title: Gallery width &amp; height
Last modified: March 23, 2020

---

# Gallery width & height

 *  Resolved [rcoopr](https://wordpress.org/support/users/rcoopr/)
 * (@rcoopr)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gallery-width-height-2/)
 * I understand the size of the gallery is controlled by the main_size parameter.
 * Although most of my photos are landscape (and display nicely), when a portrait
   image is shown only the top half of the image is displayed on the screen and 
   you must scroll down to see the lower half. This is the case when using a laptop/
   desktop with landscape screen.
 * On a mobile phone this problem does not exist, as the phone screen is portrait
   and the portrait photos fit the screen. Interestingly the landscape photos correctly
   scale to fit by width.
 * I am wondering if there is any way to set specific and individual limits to the
   width and height of a gallery, in order to resolve this issue? Or perhaps there
   is another simpler solution?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgallery-width-height-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gallery-width-height-2/#post-12580772)
 * Hi,
    Sorry for the delay in responding – I have been fighting with trying to 
   get some Instagram changes approved.
 * To answer your question, it is not possible to define dimensions for individual
   images. That being said, you can set an option, _Photonic → Settings → Generic
   Options → Slideshow settings → Slideshow Image Adjustment_. Pick the one that
   says, “Show whitespace to the sides for narrower images”. This should help keep
   your gallery at a fixed height.
 *  [btcdattia](https://wordpress.org/support/users/btcdattia/)
 * (@btcdattia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gallery-width-height-2/#post-12582891)
 * Hello [@sayontan](https://wordpress.org/support/users/sayontan/) ,
 * I have the same issue as [@rcoopr](https://wordpress.org/support/users/rcoopr/)
   with a Google Photos slideshow. I have enabled the “Show whitespace to the sides
   for narrower images”, but it seems to simply just cuts the horizontal images.
   Any suggestion as to why it might be and how to solve it?
 * Thanks!
 * Daniel
 * Link to test slideshow… [https://brktcstaging.wpengine.com/photonic-slideshow/](https://brktcstaging.wpengine.com/photonic-slideshow/)
 *  [rely28](https://wordpress.org/support/users/rely28/)
 * (@rely28)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gallery-width-height-2/#post-12590122)
 * Hi,
 * I join this discussion while still open, I have a similar problem with different
   sizing but not about slideshow. The setting mentioned above is about “slideshow”
   but not for example about a random tiled gallery. Fact is, the gallery looks 
   ok with mainly landscape photos but if there is a portrait photo in the middle,
   it got stretches in the landscape format too. But for a strange reason, if I 
   click on this particular photo, I see it in slideshow mode, no problem, and when
   it’s back to the gallery, then the gallery is ok and this photo appear in portrait
   mode finally.
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gallery-width-height-2/#post-12596804)
 * [@btcdattia](https://wordpress.org/support/users/btcdattia/),
    I will put in 
   a fix for this in 2.33 (should be out in a couple of days).
 * [@rely28](https://wordpress.org/support/users/rely28/),
    Your issue is unrelated.
   I believe you have a lazy loading plugin on your site. Lazy loading plugins tend
   to mess with images in irregular layouts; a justified grid requires the full 
   image to be loaded before it can determine the layout, but a lazy loading plugin
   prevents the image from loading unless it is displayed, by which time it is too
   late for the justified grid layout. If you disable lazy loading for your page
   you will be fine.
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gallery-width-height-2/#post-12598614)
 * I just released 2.33, which should show the white space on the sides for narrower
   images in slideshows.
 * I am marking this thread “resolved”. Please feel free to post back if it is not
   working.
 *  Thread Starter [rcoopr](https://wordpress.org/support/users/rcoopr/)
 * (@rcoopr)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gallery-width-height-2/#post-12598852)
 * Thank you for your kind guidance and the update. Great service!
 *  [btcdattia](https://wordpress.org/support/users/btcdattia/)
 * (@btcdattia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gallery-width-height-2/#post-12599045)
 * [@sayontan](https://wordpress.org/support/users/sayontan/) Thank you very much!

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

The topic ‘Gallery width & height’ 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/)

## Tags

 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [height](https://wordpress.org/support/topic-tag/height/)
 * [size](https://wordpress.org/support/topic-tag/size/)
 * [width](https://wordpress.org/support/topic-tag/width/)

 * 7 replies
 * 4 participants
 * Last reply from: [btcdattia](https://wordpress.org/support/users/btcdattia/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/gallery-width-height-2/#post-12599045)
 * Status: resolved