PDA

View Full Version : Photoshop scripts



David Spivak-Focus Magazine
21-Jun-2009, 15:12
Is there a script for Photoshop that can automate the re-sizing of images?

For instance, I have 150 images that are 1350 x 1632 that I want to re-size them all to 500 x 604. To sit here and do it on my own would be tedious and potentially take hours. So is there something that I can do that would automate this entire process for me?

PenGun
21-Jun-2009, 15:40
There is imagemagick for windows:

http://www.imagemagick.org/script/binary-releases.php#windows

It will do almost anything you can think of in a *nix environment. Is perfect to sic on a dir full of images. A lot of the automatically resized stuff on the web is run through imagemagick.

J D Clark
21-Jun-2009, 16:16
I do this all the time directly in Photoshop with the "Image Processor" in the File / Scripts menu that came with Photoshop. Select the folder containing the files, select the folder in which to place the resized files, then choose the size in step 3 with "Resize to Fit." I find I have to do the horizontal images separate from the vertical ones, so there might be a trick I'm missing, but other than that, it works for me.

John Clark
www.johndclark.com

David Spivak-Focus Magazine
21-Jun-2009, 18:02
Thanks to both of you - the input from both of you worked - so I'm on my way to re-sizing hundreds of images in no time flat! Whoo hoo!

Martin Miksch
22-Jun-2009, 01:04
Btw, its very easy in PS to record your own actions, just klick new action, start record, do your manipulation, after that click stop record and you can use the recorded action in either from a shortkey or in batch mode.
Regards
Martin

ChrisN
22-Jun-2009, 04:15
And in recording an action, in the resize step you can specify the size reduction as a percentage, which will take care of both Portrait and Landscape images.

Marko
22-Jun-2009, 05:38
With your dimensions, it is likely that you will need to do some sharpening to compensate for the loss in resolution.

If you record your own action, you can incorporate sharpening as another step or you can simply pick Bicubic Sharper in the Image Size dialog.

David Spivak-Focus Magazine
22-Jun-2009, 07:57
With your dimensions, it is likely that you will need to do some sharpening to compensate for the loss in resolution.

If you record your own action, you can incorporate sharpening as another step or you can simply pick Bicubic Sharper in the Image Size dialog.

Tell me, how do the images look? I wish I could get rid of or at least reduce that shadow in the middle.

http://www.focusmag.info/preview/Issue%2018/

Donald Miller
22-Jun-2009, 08:38
Quote "I wish I could get rid of or at least reduce that shadow in the middle".

There should be a place in the code that will allow you to adjust the gradient density or to totally eliminate it (as in a double page spread). I seem to recall that feature when I checked into Pageflip awhile back.

Most flip engines have both a shadow and reflection parameter that is user applied or ammendable. As I recall PF is written in AS2 rather than AS3.

Marko
22-Jun-2009, 08:40
The shadow in the middle seems to be part of your flash package, it should have a config utility or preference file, depends on how the author set it up.

The images look OK, some would benefit from a touch more USM, but nothing critical. IMO, of course.

Daniel_Buck
22-Jun-2009, 10:51
And in recording an action, in the resize step you can specify the size reduction as a percentage, which will take care of both Portrait and Landscape images.

or you can do file/automate/fit_image and it will resize the image based on the longest dimension, if you punch in 800x800, your 8000x4000 image will be sized down to 800x400. That's handy too :) So many ways to do most things in photoshop, lots of options :)

David Spivak-Focus Magazine
22-Jun-2009, 11:11
Quote "I wish I could get rid of or at least reduce that shadow in the middle".

There should be a place in the code that will allow you to adjust the gradient density or to totally eliminate it (as in a double page spread). I seem to recall that feature when I checked into Pageflip awhile back.

Most flip engines have both a shadow and reflection parameter that is user applied or ammendable. As I recall PF is written in AS2 rather than AS3.

Ah the problem is the program is free and only gives me .swf files - not the source code. The source code is $300 - the shadows aren't bad enough to make me want to spend that kind of money.

Donald Miller
22-Jun-2009, 17:26
Ah the problem is the program is free and only gives me .swf files - not the source code. The source code is $300 - the shadows aren't bad enough to make me want to spend that kind of money.

I understand. If you are proficient is Action Script 3 and XML there is an alternative to Page Flip that is open source. But knowledge of the languages I have mentioned is required.

David Spivak-Focus Magazine
6-Jul-2009, 04:44
I understand. If you are proficient is Action Script 3 and XML there is an alternative to Page Flip that is open source. But knowledge of the languages I have mentioned is required.

The only language I'm fluent in is English and that's being kind.