Need some expert advice

Sorry if this is a bit out of the scope of this section of the foum but your help will be much appreciated.

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

You could make a Photoshop action that resizes the images to 40% of the original in both height and width. That would work on images in both landscape and portrait orientation.

http://www.brothersoft.com/Multimedia_Graphics_Image_Editors_Photo_Resizer_Pro_24567.html

Shareware for 30 days, might do the trick if combined with Hans’s idea,

Carlitio

Guys,

Thanks very much. Hans, That is a great idea!

My only problem now, to make matters worse is they want all the old thumbnails resized (which you have found a solution for and is great), and to have a large image displayed on click of the thumbnail. This means I have to rotate and brighten all the large images (cause previously they were not there).

I guess there is no way I could automate this task is there?

I think its an almost silly question, cause I can’t see how a software package can work out if a photo needs rotating, and requires brightening?

The only way I can think of is to use the actions tab next to the history tab in photoshop. You basically click record, do your mutiple processes on an image, then click stop. You can then ‘replay’ what you did on other images. You can also edit the individual steps by double clicking on them.

As for brightening them and deciding if they need rotating? Your initial idea of code to sort which are wider than long is plausable but brightening?!? They would more than likely need individual inspection. I can only see coffee being the answer. But I could be wrong. Make sure it’s on the invoice titled ‘sanity danger money’.

Photoshop supports batch processing. So if you run an action, like Carlitio said, you can batch it on a bunch of images in a folder.

I’ve used ACDSee to rotate a bunch of images. You select all the images you want to rotate and let it do its magic. Luckily my new camera has an orientation sensor that tells Photoshop if the image should be rotated or not. That’s a real time-saver.

As for brightening, I’ve used Photoshop for that. I’ve recorded an action that does a ‘curves’ adjustment (image->adjustments->curves) that brightens the image a bit. Actually that’s part of my standard image workflow. Digital images often seem a bit dark.

If you’re interested, the steps in my standard workflow action is as follows:

  • auto contrast
  • brighten a bit via curves
  • resize for web using the percentage trick from above
  • unsharp mask with 70, 0.7, 1 (the images from my camera are a bit soft)
  • save for web
  • close image

That way Photoshop can work on a bunch of images while I watch the olympics on TV…

Yeah thanks again guys,

I have been reading into Photoshop’s new ‘File Browser’ Feature and apparently yo can Batch rename files, rotate and stuff all via the file browser within Photoshop. That will work well for me.

Now Hans, that Auto contrast sounds good… what are ‘Curves’?

And guys, can you set Photoshop to brighten automatically, because the photos I am working on are taken in nightclubs so some are darker than others?