im trying to record an action so i can apply this to several hundred images. i want to resize an image so the LARGEST dimension is 640. wheter its horizintally or vertically, the max should be 640 and the other dimension should resize proportionatly.
is there a way to do this? that way i dont have to worry about if im applying my action to a vertical or horizontal image.
One of the problems with automating a process like this is that most photos will benefit from some sharpening after being resized, and the settings for that should really be individualized for the characteristics of each photo.
If you plan to resharpen them after reducing them, you should not be saving the resized images in JPEG, unless you are sure you are using the latest "lossless" setting, or else you run the risk of "generational loss" each time you re-save.
Using purely Photoshop, scripting is your only solution. However, unless you are relatively technically savvy, I wouldn't recomend this solution.
The easier method would be to create both a portrait and landscape action, and apply them selectively.
If you do use the scripting method, check out the appropriated PDFs in the scripting folder in your Photoshop installation directiory. And write it using JavaScript, so that It's portable between PCs and Macs.
You don't need scripting if you have CS2. The Bridge (and possibly the batch processing right in PS) allow you to resize a group of images specifying the max for either direction.
For example, if you want to limit the longest dimension to 640 you would enter 640 in both height and width. The other dimension would adjust automatically.
If using an earlier version of PS this still may work with the batch processing.
You don't even need an action to do this.
In the Bridge it's under Tools>Photoshop>Image Processor