04-22-2009, 09:05 AM
|
#2 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
With all of these threads about reading files from a directory, please start separating your code into specific tasks. For this particular thread: - Gather list of images in the directory
- Iterate over that list ordering by orientation (landscape/portrait)
- Display that sorted list in your required format (JavaScript in this case)
To help you determine which images are landscape or portrait you could use the getimagesize function.
|
|
|
|