Forum Moderators: coopster
1: Delete all landscape images
2: Make two directories, images/landscape/ and images/portrait/ and put each image in the correct directory
3: Make two textfiles e.g. portrait.txt and landscape.txt each containing per line the name of a portrait / landscape image. When a new image is added, check it's aspect ratio and append its name to the right file. When displayed, read the contents of the textfile and display the images named in the textfile.
4: I.s.o. using textfiles create two tables in your DB and add each imagefilename to the right table.