Automatic crop images?

digiman

TPF Noob!
Joined
Feb 8, 2005
Messages
1
Reaction score
0
Hi,

I want do crop my scanned images automatically.
I have hundreds of scanned pictures like this:
Testpic

The problem is, there are always 2 images
on one scan.

Do you know of any software for this?
Thanks a lot!
 
If all of the photos are in the same position on the page, you may be able to record a set of 'actions' with Photoshop and then run the sequence on a batch of files. I've never tried to create a crop action...so I'm not sure if it would work or not.
 
Actions might work. If you've got hundreds of images you better hope actions will do it. I've had situations like this one and my solution while not great worked. Draw a rectangle with the marquee tool in PS. copy and paste your image to a new doc, save and close. Then move the marquee to the next image and repeat the process. Should cut your cropping time in about half and give you consistent sizing... good luck with that one.
 
You won't be able to record a cropping script, since it would require an "undo" to get it back to the original so that the next image can be done. You might be able to do a cut and paste script but that would require the photos being in the exact same position on every page like big m said.

While it would add to your scanning time if you scanned them one by one you could probably save time by using the magic wand selector, selecting the white space, then inverting the selection and cropping. That could be easily scripted. But you'd still have to rotate and recrop most of the photos.

Your scanner might come with software that automatically rotates and crops but I doubt it would work for 2 photos in one scan.

Basically I'm trying to say "no software that I know of".

My only recommendation is do really high quality scans and get it right the first time. What's worse than scanning and cropping hundreds of photos? Doing them twice.
 
Here's a possible action based on the images being at least in generally the same location (HAS NOT BEEN TESTED...yet):

1. Make rectangular selection leaving approx. 1" of white space around image.
2. Edit>Copy
3. New document (this should retain the measure of the copy command)
4. Edit>Paste
5. Select>Color Range (based on background being close to a pure white)
6. Select>Invert
7. Image>Crop
8. Layer>Flatten Image
9. Save (see note at bottom)
10. Close (see note at bottom)
11. return to original document (document jumping is permitted in actions)
12. Move selection to second image area.
13. Edit>Copy
14. New document (this should retain the measure of the copy command)
15. Edit>Paste
16. Select>Color Range (based on background being close to a pure white)
17. Select>Invert
18. Image>Crop
19. Layer>Flatten Image
20. Save (see note at bottom)
21. Close (see note at bottom)
22. return to original document (document jumping is permitted in actions)
23. close without saving

The thing that's going to hang you here is saving. Because they are new documents they will be named Untitled-1.ext, Untitiled-2.ext, etc.

You can do a generic rename on windows by selecting all, right clicking, and selecting "rename". On a mac, I find an application called R-Name to be quite useful.

The other thing is that they'll still need to be cleaned up due to rotation, colour balance, etc. A good tip here is to use the ruler tool Click twice along a straight edge. Then go Image>Rotate Canvas>Arbitrary...
The correct rotation will be entered for you. This is also a handy tip for correcting crooked horizons (can't be automated though).

Like I said, hasn't been test, but it might cut down on some of your workload. And some is better than none.
 

Most reactions

New Topics

Back
Top