I am in the process of upgrading a clients website, and so far so good. I have one major problems though…
Background: The website is for a nightclub promotions company who currently have a static Flash website, but now require a dynamic website run by PhP. They take many photos of their events week in and week out and need an easily maintainable website. Their ‘Gallery’ is the most important part of their site.
The problem: Currently all their photos are 250px width (for landscape) or 250px height (for portrait). The new site requires 100px width (for landscape) and 100px height (for portrait). There are over 100 folders of photos on the server. I need to re-size all these images!!!
I know it is possible to have an automated task in Photoshop, or batch process in fireworks, but the problem is how can I separate the portraits from the landscapes on a folder-by-folder basis to re-size correctly? Any ideas?
My current possible ideas: Use PhP function ‘getimagesize’ to work out what a landscape photo is (if width > height), and then maybe create some batch file to move the files based on the output of the PhP function. Not sure if this will work, but you might be able to advice me on this?
Sorry for long post, but your help will be much appreciated!
Cheers in advance.
W Digital