Link to home
Start Free TrialLog in
Avatar of Brad Bansner
Brad Bansner

asked on

separating multiple images from one file with slices

I have a large number of scans which are very similar. They are all approximately 8-1/2" x 11" in size and contain a bunch of objects which are mainly rectangular, all on a black background. Imagine several photos were placed on a scan bed, and all scanned at the same time into one big file. My job is to separate the scans out and save them with specific filenames.

I do not do the scanning myself, I am provided with the files, so doing this at the time of scanning is not an option. I need a way to work with existing scanned files.

The way I do this currently is to use the Slice tool to draw a box around each object, then double-click the Slice to give it the appropriate filiename. Then I do a "save for web" (this is for a website), which then saves all the various objects with the correct filename. I simply delete the other, miscellaneous slice files that Photoshop generates, and I now have a useable set of graphic files.

I'm wondering if there is any software or techniques in Photoshop which will save some time on the first part of this, drawing all the Slice boxes. It seems there should be some programmatic way of determining the boundaries between the black background, and inserting a bunch of slices which I can then tweak, rename, and save out of Photoshop. This would save me a lot of time, since there are nearly 1000 files of this type which I need to separate in the course of a year.

Thank you.
Avatar of cre8tive
cre8tive
Flag of United States of America image

yes. the magic wand tool or the magnetic selection tool.

Video tutorial for creating a vector mask
http://www.tutorio.com/tutorial/vector-mask


tutorials

http://www.tutorialoutpost.com/count/4516

http://www.tutorialoutpost.com/count/4219
Avatar of Brad Bansner
Brad Bansner

ASKER

OK, I understand that the magic wand will select the multiple images, but how do I then convert that into Slices? The tutorials you posted don't seem to show how to do that.
You create a photoshop action of one of those techniques above, then create a batch process that uses the action u made to  do it all for you:


How to automate tasks:

http://www.tutorialoutpost.com/count/3937


Batch process:

http://www.tutorialoutpost.com/count/3710

http://www.artworld.si/advanced_batch_processing_video-tutorial-191.art


Sorry about that. Slicing is used mainly for website design. So all the tutorials I have are for that.

here's a tutorial on slices:


http://www.planetphotoshop.com/tutorials/spivey14.html


http://www.pixel2life.com/tutorials/Adobe_Photoshop/All/?a=7&b=1&c=0&f=15&d=1&ss=slice
You are sending tutorials about slices, but not really answering the question.
Ok. I was suggesting that maybe you could create a action of what you have been doing previously.  Then create a batch process to automatically do it.

I don't think there is a way to do exactly what you want, because  the scanned objects would need to be in the exact location everytime in order for it to work perfectly.

If the images are in just about the exact location everytime, creating a batch process would work prefectly.  Otherwise what your currently doing is probably the best way.

But for pages with one object, you could easily make an action to select the object, then make a batch to apply the action and auto-save.
Avatar of David Brugge
bbdesign, I think you came up with a pretty creative solution. My hat's off to you. The only way that an action might work is if all of the images are the same size on each scan and in exactly the same location.

I would probably use a cut and paste approach. When you open a new file (command/contron N) the size of the file is automaticly set to the size of the image in the clipboard. I would draw a marquee, command/control X the image, command/control N (enter) an new page, command/control V the image down, command/control S and enter the new file name. Command/control W and move on to the next image.
If all of the images are the same size, you can save a tiny amount of time by setting the marquee to set size. Then you only have to worry about placement (by holding down the space bar)
Yes, the job is long and tedious, but if you learn your shortcuts (like we all should do) I think that you can knock these out in about a quarter of the time it would take to slice and dice.
Purhaps not. but that's my only suggestion.

David B
Unforunately, they are all of varying sizes. I guess I was hoping there was some way to do a Magic Wand, expand the selection, and then automatically convert those "shapes" into Slices. I guess it can't be done, maybe someone should write a plugin to do that someday.
Just speculating, haven't tried this...

Can you do a magic wand on the black area, invert the selection (so now all that is not black is selected), and then save for web?

Then maybe you can determine if there's one corner or edge where there consistently is black, and automate from there...
No, that doesn't do it. I guess there is no way to convert a selection into slices.
Yes you CAN convert a selection into a slice, but you have to do an in between step first.

Make your selection, cut (cmnd/ctrl-C) and paste (cmnd/ctrl-V) and the selection will be moved from the origional layer to a new layer. This layer can be promoted to a layer slice.

But you may not have to.

You can use the File/Scripts.../Export Layers to Files command to create individual files with each layer. You can make this ever task even faster by making a just rough selections with some of the black showing in the top left or lower right corner each time, then using an action to trim the files (Image/Trim...) and crop out all of the black automaticly.
Interesting ideas. I don't think any of these will be quicker than using the manual slice method, because there may be 30 individual items I need to name and save in the same image. However, your ideas are helpful and I'll award the points if you can answer this...

One thing that might help is if I could do the selection as you describe, and then have the Slice tool snap to the selection. I can't seem to get it to snap in that way, if I could, it would speed up the process a lot.
ASKER CERTIFIED SOLUTION
Avatar of David Brugge
David Brugge
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Interesting, I'll have to play around with this a bit to find the most useful application of these ideas. Thanks!