Incense

by Bart Arondson

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

I want a Photoshop droplet that can resize several images to the same target size.

Of course I can put landscape and portrait images into separate folders and apply a different action on each, but that is so lame.

So I made a script like this:

if (app.activeDocument.width.value > app.activeDocument.height.value) {
    app.activeDocument.resizeImage("920 px", undefined, undefined,
                                   ResampleMethod.BICUBIC);
} else {
    app.activeDocument.resizeImage("455 px", undefined, undefined,
                                   ResampleMethod.BICUBIC);
}

Which works fine. But the problem is that I need a different script for each different resolution. This could also be solved using the Save for Web command, but I believe that behaves the same way as resizing.

I can ask the user to specify a width inside the script (using a dialog box) but I imagine if I do this inside a droplet, and I drop several files over the droplet, it will show the dialog box for every file. I want to show it only once.

So my question is: is there a better way to create a universal resizing droplet that can ask the desired width/height once for every batch? Or is the only way to create several scripts and droplets, one for each resolution?

share|improve this question

1 Answer 1

I have an action for resizing my images, where I specify the size in percent instead of pixels. That way the action works for both vertical and horizontal images.

share|improve this answer
    
i could do that changing the dpi. but since i crop some photos the original size is not uniform, so i can't do it this way :( –  ariel Aug 5 '11 at 19:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.