by ʇolɐǝz ǝɥʇ qoq

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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,
} else {
    app.activeDocument.resizeImage("455 px", undefined, undefined,

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

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


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.