Title: Resizeheight not working?
Last modified: August 21, 2016

---

# Resizeheight not working?

 *  [bitterer](https://wordpress.org/support/users/bitterer/)
 * (@bitterer)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/resizeheight-not-working/)
 * I am trying to get a mixed gallery (landscape and portrait images) working with
   the NivoSlider. For some reason, the resizing (I’m using resize=”1″) of the portrait
   formats won’t work.
 * I tried to define a resizeheight=”640″ assuming that all images have that same
   height, and the portait images are scaled down accordingly. But they are shown
   with the full width (which is 960) and so have the same width as the landscape
   formatted images.
 * With resize=”3″ the formatting works as I need it, but I don’t want to use any
   color as “background”. If the background could be set as transparent, that’s 
   what I’d need.
 * Or some way to scale portrait images to have the exact same height as landscape
   images.
 * Maybe I’m missing something with the parameters….
 * [http://wordpress.org/extend/plugins/nextgen-nivoslider/](http://wordpress.org/extend/plugins/nextgen-nivoslider/)

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

 *  Thread Starter [bitterer](https://wordpress.org/support/users/bitterer/)
 * (@bitterer)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/resizeheight-not-working/#post-3859770)
 * Here is an example of a NivoSlider gallery. [http://andybitterer.com/sandbox/puglia-nivo/](http://andybitterer.com/sandbox/puglia-nivo/)
 * Everything is fine until the gallery shows a vertical/portrait image. I would
   like the black areas left and right of the image to be transparent, while the
   left/right arrows should stay exactly where they are, so that a user would not
   need to move the mouse pointer.
 * By the way, it would be cool to be able to auto-generate a border around the 
   images. Like “border: 2px solid white” or something…
 *  Plugin Author [Aldert Vaandering](https://wordpress.org/support/users/paperfeed/)
 * (@paperfeed)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/resizeheight-not-working/#post-3859868)
 * The problem is that NivoSlider doesn’t support PNG, so transparent backgrounds
   are not possible.
 * I’ll look into adding border support.
 *  Thread Starter [bitterer](https://wordpress.org/support/users/bitterer/)
 * (@bitterer)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/resizeheight-not-working/#post-3859875)
 * This really isn’t about PNG, or transparent backgrounds. I don’t need either,
   I suggested this option only as a potential workaround.
 * What I would like, though, is the plugin to size vertical images properly, in
   particular when I set the _resizeheight_ to a fixed value. The plugin seems to
   ignore that value (or the height/width ratio), as all vertical images are distorted
   or cropped to fit the horizontal format. Does not look good, obviously.
 * Border support would be awesome.
 * Another cool feature would be a “loading” icon for the time when the plugin loads
   the images. Right now, it just shows an empty space for a few seconds. See here
   for some options: [http://ajaxload.info/](http://ajaxload.info/)
 *  [simpsinator](https://wordpress.org/support/users/simpsinator/)
 * (@simpsinator)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/resizeheight-not-working/#post-3859876)
 * Oh, yes, right. Exactly the same problem I’ve encountered. “resizeheight” seems
   to get ignored.
 *  [Linksbreaker](https://wordpress.org/support/users/linksbreaker/)
 * (@linksbreaker)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/resizeheight-not-working/#post-3859891)
 * Maybe not the best solution, but I wrote this patch css:
 *     ```
       /* fix crop-height nextgen nivo slider */
       .theme-default{/* or the name of the nivo template you use */
       	overflow: hidden;
       	-webkit-box-shadow: 0 1px 5px 0 #4A4A4A;
          -moz-box-shadow: 0 1px 5px 0 #4A4A4A;
       	box-shadow: 0 1px 5px 0 #4A4A4A;
       }
       .nivo-controlNav {
           position: absolute;
       }
       .nivoSlider { /* or the id used in your shortcode = html_id="your-id" */
           max-height: 300px;
       }
   
       /* fix the white border */
       .nivoSlider img {
           width: 101% !important;
           height: auto !important; /* disallow scale */
       }
       ```
   

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

The topic ‘Resizeheight not working?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-nivoslider_9ca09b.svg)
 * [NextGen NivoSlider](https://wordpress.org/plugins/nextgen-nivoslider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-nivoslider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-nivoslider/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-nivoslider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-nivoslider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-nivoslider/reviews/)

## Tags

 * [background](https://wordpress.org/support/topic-tag/background/)
 * [portrait](https://wordpress.org/support/topic-tag/portrait/)
 * [resize](https://wordpress.org/support/topic-tag/resize/)
 * [Scale](https://wordpress.org/support/topic-tag/scale/)

 * 5 replies
 * 4 participants
 * Last reply from: [Linksbreaker](https://wordpress.org/support/users/linksbreaker/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/resizeheight-not-working/#post-3859891)
 * Status: not resolved