What I need is a PHP function that I can integrate into my site.
The function should accept a "directory" as a parameter, it then reads that directory for images and display all the images on 1 page.
Sound simple? the tricky part is that this directory will contain about 100 images of various sizes, what the function must do is sort through these images and organize it in a way that they are all displayed neatly next to each other, avoiding large white spaces because of the different sizes. Simply reading the directory and dumping the image son the page will result in a very messy page. This will probably require CSS to do some display manipulation.
Please see the uploaded image to see an example of what I want to acheive, the folder contain all those images, the function will take those images and organize it on the page.