What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Cropping from a directory


mattbtay

Member
Messages
7
Likes
0
I have a directory from a client with around 20,000 photos. most are in landscape format, while some in portrait format. The client wants all the photos cropped to 800x600 for the landscape and 600x??? for the portrait. With such a large number of photos what is the best way to get this done. Is there any type of logic I can apply to a photoshop script that can determine the image size and what it should be cropped, or resized to?

Any other ideas?
 

Paul MR

The Script Master
Messages
382
Likes
206
If you want the documents cropped they would have to be done one at a time as cropping the same area in each photo would not give you the desired results.

What you can do is use File - Scripts - Image Processor and use Resize to Fit set the Width to 800 and the Height to whatever you want a portrait height to be.
 

mattbtay

Member
Messages
7
Likes
0
Everything seems to work like you explained. Thanks - now the photos, as given to me, when resized are 800x533 - I need them to be 800x600, is there a way to not constrain the width/height together, while still accomplishing the same thing?
 

Paul MR

The Script Master
Messages
382
Likes
206
It is possible but then all the pictures would be distorted!

You need to go back to the client and find out what he wants as the pictures are not of the correct ratio to resize to 800 x 600.

If this is exactly what he needs then it would mean cropping each picture in turn.

Another way would be to add white space around each picture so they would be 800 x 600 but that would require a custom script.
 

mattbtay

Member
Messages
7
Likes
0
I think it may be okay, these are for web use, so a little bit of stretching may be acceptable. Just depends on what they actually look like once they have been resized to that 600px height...
 

Paul MR

The Script Master
Messages
382
Likes
206
Ok in that case you will have to create an action for a landscape picture and an action for a Portrait picture.
The action would record :
Image - Image Size - Untick Constrain Proportions Set Width to 800 and height to 600

You could then use Image Processor to run this action (on Landscape pictures)

Create another action for Portrait and run that action for Portrait pictures.
 

mattbtay

Member
Messages
7
Likes
0
Yea, I saw the ability to add an action to the end of that script - there is no distinction between landscape and portrait in the directory with the images so picking them out by hand almost negates any benefit of using this script - is there any way to add some logic to this? So that if the images is xxx use this action and if the image is not the use this other action?
 

Paul MR

The Script Master
Messages
382
Likes
206
The easy way is to use Adobe Bridge, Explorer or Finder to select all portrait/landscape and copy/move them to thier own folder.

It would need a custom script otherwise.
 

mattbtay

Member
Messages
7
Likes
0
do you, or anyone you know have any interest in writing a script to do this today, obviously willing to pay too.
 

Top