Script to Cut Up an Image

860 views9 repliesLast post: 12/28/2006
Does anyone know of a Script that can cut up an image. For example if I have a panorama that is 30 feet long I could tell the script to cut it in to 20 pieces or 30 pieces or even 2 rows of 30 columns, it would then cut it up placing each piece in a new document and then save it?

Thanks,

Robert
#1
Robert,

What version of Photoshop are you using?

What is the format of the destination files? JPG, GIF, PSD?

I've been working on a script to do this. I've got the parts but I haven't put them all together into a single script.

Larry Ligon
#2
Photoshop CS2 (Windows) as far as the output format I don't care. I can always convert after the image is cut up.

Robert

wrote in message
Robert,

What version of Photoshop are you using?

What is the format of the destination files? JPG, GIF, PSD?
I've been working on a script to do this. I've got the parts but I haven't put them all together into a single script.

Larry Ligon

#3
Theoretically it could be done with an Action. I used to use an action that cut a spread in half and outputted two files. The trick was to use Canvas Size, Save the result and expand back to the original size. I am not sure I would want to attempt it with 20 or 30 pieces, but I do think it could be done.
#4
I've got the code to do this. Just have to put it together.

Larry
#5
I've got the code to do this. Just have to put it together.

I'm sure I heard somebody say that recently about... erm... something called CS3? :-)

Only joking ;-) The Beta's good. Once all the code is "put together" the release should be great.
#6
Yah, but you have to create a new action for however many rows and/or columns you want the images cut in to. I don't want to do that. I want a script with an interface that I can tell it to take this directory of images and cut each one in to 2 rows by 3 columns or cut each image in to 8x10 segments and then save each cut segment in a separate file. Since Adobe doesn't seem to think actions need interface elements other than the Photoshop feature it calls up or that they need if/then logic processing statements actions won't cut it (pardon the pun).

Unfortunately also Adobe has done a fairly poor job with the Scripting in Photoshop. They have gone out of their way to make it as archaic and difficult as possible and to provide mediocre documentation besides. Otherwise I would write one of my own.

Robert
#7
Robert,

I have something for you.

It cuts to the Photoshop file format. You can then use Image Processor to change them to other file formats.

What is the maximun number of row and columns that you want?

Currently, it is set for:
maximum rows = 30
maximun columns = 30

Larry Ligon
#8
<DIV><FONT face=Arial size=2>So that would be 1 Row/column up to 30 rows/columns? That is plenty even for the largest panorama.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV> <DIV><FONT face=Arial size=2>You can send it to </FONT><FONT face=Arial size=2>mice_on_rollerskates[AT]yahoo.com. please replace the [AT] with @.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV> <DIV><FONT face=Arial size=2>Thanks,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV> <DIV><FONT face=Arial size=2>Robert</FONT></DIV>
#9
Robert,

I sent it to you.

Larry
#10