Orientation aware resizing in Photoshop

I’ve banged up a Photoshop script that resizes your image according to its orientation. I use it as part of a batch process to convert photos to a more web friendly size. As the opening of scripts can recorded as part of an action, this script can be incorporated into part of a larger work flow.

By default, it resizes a landscape picture to 800 by 533 (3:2) and a portrait picture to 533 by 800. This can be changed by opening the script in a text editor and changing the values in the docRef.resizeImage functions.

Doing this:

docRef.resizeImage(400,600,72)

will resize the image to width:400, height:600 at dpi:72.

To install this script, copy it to the Presets > Scripts folder where Photoshop is located and restart Photoshop.

2 Responses to “Orientation aware resizing in Photoshop”

  1. ??? Says:

    Your script seems to be empty - 0 bytes

  2. K Says:

    Ooops….corrected.

Leave a Reply