Codeinwp / Nivo-Slider-jQuery

Nivo Slider - The Most Awesome jQuery Image Slider
http://docs.themeisle.com/article/485-getting-started-with-the-nivo-slider-jquery-plugin
MIT License
1.25k stars 605 forks source link

add option to resize images to fit #280

Open IByteDoYou opened 12 years ago

IByteDoYou commented 12 years ago

I would like to see an option that allows the website to determin resizing baseded upon image dimensions or resizing of the image to slider dimensions.

Something like:

.resizetoIMG(); .resizetoSlider();

Or even better, something like

.resize('mode', demensions)

I like the fact that the slider automatically resized, but I have now come across an issue where I have to load images by URL and I have to control over their dimensions. This cracks out my whole page layout.

Jaybuz commented 12 years ago

Just use CSS.to set the width of the images to 100% and you may have to set the overflow to hidden on the slider.

IByteDoYou commented 12 years ago

I've tried that already. It works for 90% of the images, but then the remaining 10% are portrait and only half the image shows.

I've downloaded the non .min code and found where the slider resizes and have tried playing with setting both css selectors and attributes prior to the slider resize block, but the images don't resize (or it would seem).

I'm about to try injecting another resize plugin into this one to see if that helps. Any other suggestions are more than welcome.

Firestorm-Graphics commented 12 years ago

@IByteDoYou

you could try timthumb , vt-resize or aquaresize(wordpress)