Javascript : “Justified photo gallery” without cropping the images

I am a travel photographer who is frustrated in looking for photo gallery scripting without Cropping the Photos. For me, Photo is an Art!, there’s no compromise to change the image in any form including cropping. The images should be displayed as is, and keep maintain the aspect ratio in the gallery.
I want to keep the aspect ratio like what Flickr album did it. So I try to replicate the flickr photo gallery with my own simple algorithm.

And here the algoritm :

1. Define the minimum height for the initial height, and set the height of all your photos with initial Height. This height just for the initial, and will be adjusted.
2. Put the photo one by one in the current row, the total width should not exceed the width of the screen (or width you have been define)
3. Set the width the current row to width of the screen, and adjust the height to keep maintain aspect ratio.
4. Goto point 2 until all the photos entered into the gallery.

For this example I’m using Flickr API for loading the photos from my flickr album here.

I am a travel photographer who is frustrated in looking for photo gallery scripting without Cropping the Photos.
For me, Photo is an Art!, there’s no compromise to change the image in any form including cropping.
The images should be displayed as is, and keep maintain the aspect ratio in the gallery.

I want to keep the aspect ratio like what Flickr album did it.
So I try to replicate the flickr photo gallery with my own simple algorithm.
i don’t maintain the code and it’s just an algoritm how to replicated flickr photo album, no more than thats :p
but if you still want to say hi or anything just drop me an email.

Download sample code here.
ps :
I don’t maintain the code and it’s just an algoritm how to replicated flickr photo album, no more than thats :p, but if you still want to say hi or anything just drop me an email.