Title: [Plugin: NextGEN Gallery] Widget Gallery Thumbnail Problem
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] Widget Gallery Thumbnail Problem

 *  [sam_m](https://wordpress.org/support/users/sam_m/)
 * (@sam_m)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/)
 * Hi,
 * I’ve just upgraded to 2.7 WP and your latest Next Gen version 1.0.2.
 * In the past I’ve used the sidebar widget to produce 8 thumbnails of random photos
   from my galleries. I did not want them constrained to a set side due to abnormal
   stretching of the thumbnails. So, I use to use a size of width 0 and height 0.
   This worked in past giving me different sized thumbnails but properly sized ones.
 * Now, I try 0 x 0 in the gallery widget settings but it produces little grey boxes
   and no images (I assume the 0 x 0 setting is making them very small to see now).
 * How do I get round this? Ideally, u need a new tick box in the widget settings
   saying:
 * Do not Resize thumbnails [ ]
 * But how do I fix this for now because the re-sized thumbnails in my sidebar look
   aweful 🙁
 * Thx

Viewing 15 replies - 1 through 15 (of 56 total)

1 [2](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/page/2/?output_format=md)

 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-936914)
 * But which size do you get in the past if you set it to null ? Wonder that this
   hack produce a good result…
 *  Thread Starter [sam_m](https://wordpress.org/support/users/sam_m/)
 * (@sam_m)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-936929)
 * Hi Alex,
 * Yes, the hack did produce the desired result!
 * All photos appeared as their own sized thumbnails but still looked clear and 
   good. So, there was no stretching or odd looking thumbnails in the sidebar.
 * I really would like to be able to produce the same result with your new version.
   So, perhaps you can introduce a new tick box or allow the hack as before!
 * One problem with the hack was that if any other widget was added or changed in
   the sidebar, then the 0 x 0 had to be reset and saved the gallery widget. Otherwise,
   the little boxes like now appeared…
 *  Thread Starter [sam_m](https://wordpress.org/support/users/sam_m/)
 * (@sam_m)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937118)
 * So Alex,
 * Is it possible to make the thumbnails resort to their normal sizes and not forced
   to a size where they do not look right?
 * I would like to know how to do this.. If its some code change, please tell me
   which file or php code to change.
 * I need this fix.
 * Thx
 *  [rhythm_hearts](https://wordpress.org/support/users/rhythm_hearts/)
 * (@rhythm_hearts)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937186)
 * I really, really need help with this too. I have both portrait and landscape 
   photos in my galleries that I want to display. I just did the update to the latest
   version of Nextgen. On the previous version, if I selected “original image” instead
   of “thumbnail” in the widget control it showed both landscape and portrait. Now
   it seems to go by whatever is listed for the thumbnail size. Help!
 *  [rhythm_hearts](https://wordpress.org/support/users/rhythm_hearts/)
 * (@rhythm_hearts)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937187)
 * p.s. In the actually gallery pages on my site I get both landscape and portrait
   thumbnails. Only the widget is the problem. I can’t link to it because it looks
   so awful right now that I just deleted the widget!
 *  Thread Starter [sam_m](https://wordpress.org/support/users/sam_m/)
 * (@sam_m)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937223)
 * [@rhythm_hearts](https://wordpress.org/support/users/rhythm_hearts/),
 * Yes, I have the same problem, they are all squashed and squished into the same
   size. They don’t look good at all!
 * You said you deleted the widget, so what are you using instead?
 * I hope someone can help with this!
 *  [mrruin](https://wordpress.org/support/users/mrruin/)
 * (@mrruin)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937226)
 * I have the same problem. Portrait images are stretched to landscape in the sidebar
   widget. It used to work just fine before.
 * Set to “original images” and 160×120
 *  Thread Starter [sam_m](https://wordpress.org/support/users/sam_m/)
 * (@sam_m)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937237)
 * Alex or anyone from the NGG team?
 * There are three of us here hoping that someone can help us with this issue…
 * It would be great if you can tell us what or how this can be solved…
 * Thx
 *  [striser](https://wordpress.org/support/users/striser/)
 * (@striser)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937239)
 * Same problem for me.
    With previous versions of NGG i used to set “original images”
   and a fixed width in the widget settings, leaving the height box empty, and everything
   worked like a charm, meaning that every image was always displayed with its correct
   proportions, due to the fact that the height was automatically calculated for
   each single picture. Now this is not possible anymore: I can’t leave the height
   box empty, and if I put a value of “0”, what i got is a picture that is tall 
   0. Is there a way to make the plugin work like before? Thanks a lot!
 *  [agreda](https://wordpress.org/support/users/agreda/)
 * (@agreda)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937240)
 * Make that four of us … My thumbnails are getting resized beyond their maximum
   settings.
 * I’ve set thumbnail setting to 100×75, but many are getting generated at 99×75.
   then when displayed in my random or recent images scripts (set to 100×75) they
   are getting resized to 100×76, throwing my layout outta whack.
 * Any help is greatly appreciated.
 *  [alexemde](https://wordpress.org/support/users/alexemde/)
 * (@alexemde)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937263)
 * Make that five: I also use the widget to display original images and I would 
   like to specify the width and have the height calculated accordingly. If that’s
   not possible in the widget, does maybe someone have an idea for php code to use?
 * Thanks
    Alexandra
 *  [jela](https://wordpress.org/support/users/jela/)
 * (@jela)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937265)
 * i have the same problem with the nextgen widget:
 *  – stretching of the thumbnails
    – can’t setting ‘original images’
 * WP 2.7
    NextGEN Gallery 1.1.0
 *  [alexemde](https://wordpress.org/support/users/alexemde/)
 * (@alexemde)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937266)
 * I have found at least a temporary solution with [this PHP image resize script](http://tech.mikelopez.info/2006/03/02/php-image-resize-script/):
 * I inserted a call to the resize script into the nextgen “widget.php” output function
   passing on parameters from the widget to the script (in this case I want consistent
   width) and the image gets resized in realtime and served back to page:
 * `if ( $options[$number]['show'] == 'original' )
    $out .= '<img src="'.NGGALLERY_URLPATH.'/
   lib/imgsize.php?w='.$options[$number]['width'].'&img='.$image->imageURL.'" title
   ="'.$image->description.'" alt="'.$image->alttext.'" />';
 * Only issue is that this means I cannot define height and width in the html code,
   so the page doesn’t validate, and does look a bit strange until the image is 
   fully loaded.
 *  [eptesttrial](https://wordpress.org/support/users/eptesttrial/)
 * (@eptesttrial)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937268)
 * I think I have this same problem as well. The thumbnails are stretched. I can
   change the width in the sidebar widget but i can’t change the height of the thumbnails
   to be anything other than 50 px. Don’t know where this comes from. I would like
   to use square thumbnails or anything that doesn’t make the thumbnail images stretch.
 * WP 2.7
    NextGEN Gallery 1.1.0
 *  Thread Starter [sam_m](https://wordpress.org/support/users/sam_m/)
 * (@sam_m)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/#post-937271)
 * Wow! Over five people having the same problem is a large number of people not
   happy with the widget issue.
 * I hope Alex will be able to help us with this. The stretching of the thumbnails
   makes a lot of photos look very bad.
 * I’ve tried different sizes for thumbnails in the widget but due to a mix of portrait
   and landscape photos. There are always some photos not looking good at all.
 * @alexmde – I did think of that, but you will only have the headache of supporting
   your changes once another release of NGG comes out.
 * It is better if Alex can update the widget code for the aspect ratio of the images
   to be correct e.g a max setting for both height and width, which bypasses the
   stretching effect.
 * WordPress 2.7.1
    NGG 1.1.0

Viewing 15 replies - 1 through 15 (of 56 total)

1 [2](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/page/2/?output_format=md)

The topic ‘[Plugin: NextGEN Gallery] Widget Gallery Thumbnail Problem’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 56 replies
 * 26 participants
 * Last reply from: [jsabelino](https://wordpress.org/support/users/jsabelino/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-widget-gallery-thumbnail-problem/page/4/#post-937371)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
