Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto resize photoshop image using script

Status
Not open for further replies.

dtqui

Programmer
Sep 25, 2000
62
SG
Hi,

I'm trying to automate a process of resizing images in Photoshop.

I need the script to open an image file in Photoshop, resize it according to the size I send in Photoshop and save the resized image into a folder.

I'm using Adobe Photoshop 7, OS 10.2.8, AppleScript 1.9.1, Script Editor 1.9

Can this be done?
 
You can easily record this in Photoshop as an Action. Go to Window/Actions.

Open A file, start recording, do your changes, stop recording. It's very easy.
 
I know I can use Actions to record the changes but the thing is the image size needs to be send to Photoshop.

For example Image A size is now 500 X 600, then need to adjust to 240 X 300, Image B size is now 50 X 60, then need to adjust to 160 X 200.

I need to see how big the original size is to determine what size to resize to.

I was thinking of writing scripts to control Photoshop but under Script Editor/Open Directory for Adobe Photoshop, there's only 2 keywords available (open, do script).

Any ideas? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top