I need to generate some thumbs based in a slideshow. This thumbs are generated directly/dinamically from the img src for each slide.
Now I'm generating a code like this for the thumbs gallery:
<ul id="galThumb">
<li id="thumb0"><img src="path-to-image" title="Image[0]"></li>
<li id="thumb1"><img src="path-to-image" title="Image[1]"></li>
<li id="thumb2"><img src="path-to-image" title="Image[2]"></li>
...
<li id="thumbn"><img src="path-to-image" title="Image[n]"></li>
</ul>
The li elements are left floated to get a horizontal line with them.
My problem is that the users can upload any image size and orientation images and I can't control correctly the aspect of the thumbs. I need all the thumbs has a particular size. 60x45px, for example.
When the user uploads a vertical image or any other image with a different ratio I have an irregular thumb line, where vertical images occupies a width and larger images are higher than others. How can I get an equal height and width thumbs without cropping the images? Or just cropping a bit to fit the verticals?
I search a lot here and I found some useful scripts, but none get that goal.