Sub topic 10
Splitting and Straightening Scanned Photos Automatically
This chapter covers the Crop and Straighten Photos command. It assumes you can open and save images in Photoshop, find menu commands, and understand layers and pixel dimensions at a basic level. You should also know the difference between cropping and resizing from the first chapter.
What the command does
When you scan several prints at once, they sit on one flatbed image with white or gray space around them. Each print is usually slightly rotated. Fixing this by hand means drawing a crop for each print, straightening it, and saving it separately.
File > Automate > Crop and Straighten Photos does that work in one pass. It performs these steps:
- It looks for rectangular objects that stand apart from the background.
- It measures the tilt of each one.
- It rotates each one to level.
- It crops it to its edges.
- It copies each result into its own new document.
The command works on the open image and does not need a selection. The original scan is left unchanged.
Running the command
- Open the scan. Keep the file at its scanned resolution.
- Choose File > Automate > Crop and Straighten Photos.
- Wait. Photoshop opens one new untitled document for each photo it finds.
- Check each result, then save each one with File > Save As.
There are no dialog options. The command runs as soon as you choose it. This keeps it quick, but it also means you control the outcome only through how you prepare the scan.
Preparing the scan
Detection works from the contrast between the print and the background. These habits give the best results:
- Leave a gap of at least about 1 cm (0.4 in) between prints. Prints that touch can be read as one large object.
- Use a plain, uniform background. A white or black scanner lid works well. Textured surfaces and patterned cloth confuse the edge search.
- Avoid a background that matches the print edges. A white-bordered print on a white lid has low contrast at its border.
- Keep the prints roughly rectangular and flat. Curled or creased prints distort the detected edges.
- Scan at a resolution suited to your goal, such as 300 ppi for prints you want to reprint at the same size. The command preserves the scanned pixels.
Working with the results
Each output document is a flat crop of one photo. Before you save, look at three things.
Check the edges
Zoom to 100% and inspect each corner. A good result has crisp print edges with no strip of scanner background. A thin sliver of white or gray along one side means the detected edge was slightly off. Fix it with the Crop tool, using the straightening and cropping skills from earlier chapters, or with Image > Trim.
Check the rotation
The command chooses the rotation that makes the detected edges square. If the photo content itself was printed crooked, such as a tilted horizon, the print edge will be square but the horizon will not. In that case, use the Straighten option on the Crop tool afterward.
Check the count
Count the new documents against the prints on the scan. A mismatch tells you what went wrong.
| Symptom | Likely cause | What to do |
|---|---|---|
| Fewer documents than prints | Two prints touched or were too close, so they were merged | Rescan with more space, or separate them with a selection (see below) |
| A document containing two prints | Same as above | Rescan, or crop the pair manually |
| Extra tiny documents | Dust, labels, or a scratch were detected as objects | Close them without saving, or clean the glass and rescan |
| A crop of only part of a photo | The photo has a large area similar in color to the background, such as a pale sky | Select the photo first, or crop it manually |
| Nothing happens, or one document the size of the whole scan | No clear object was found, or the background is too busy | Use a plain background and rescan |
Forcing the command to behave: using a selection
If the command mis-detects a photo, you can limit where it looks. Make a rectangular selection with the Rectangular Marquee tool around the one print that gave trouble, with a margin of background on all sides. Then run Crop and Straighten Photos again. With an active selection, Photoshop processes only the selected area and treats it as the whole scan.
This is the usual way to handle a pale print on a white background. Select a margin that includes a bit of contrasting background so the edge is visible against the print.
Preserving the original
The command does not alter the source scan, but the new documents are untitled and unsaved. Closing one without saving loses it, and you would need to run the command again.
A workflow that protects your work:
- Save the original scan first, in a lossless format such as TIFF or PSD, and keep it untouched as your archive.
- Run the command.
- Save each result with a descriptive name immediately, such as
family-picnic-1987.tif. - Keep the archive scan even after you have saved the individual files. If you later find an edge error, you can run the command again from the archive.
Where this fits with other crop methods
Crop and Straighten Photos is automatic and fast, but the other methods in this tutorial give you control the command lacks.
| Need | Better method |
|---|---|
| Many rectangular prints on one scan | Crop and Straighten Photos |
| A single photo with a crooked horizon | Crop tool with Straighten |
| A building with converging lines | Perspective Crop |
| A fixed output size or ratio | Crop tool with a preset |
| A non-rectangular print or irregular shape | Manual selection, then Image > Crop |
| Exact trim of uniform borders | Image > Trim |
The command assumes rectangles. It will not correct perspective, and it will not handle circular or oval prints reliably.
Edge cases
Very small or very large prints
Small items, such as a stamp or a wallet photo, may be skipped if they fall below the size the command treats as a photo. Scan them separately or select them first. Items larger than the scan area cannot be detected at all.
Photos with white borders
Vintage prints often have a white border around the picture. The command crops to the physical edge of the print and keeps the border. If you want only the image, run Image > Trim or use the Crop tool afterward.
Dark photos on a black background
Contrast problems occur here, too. Switch to a white scanner lid, or place a sheet of white paper behind the prints.
Rotation by 90 degrees
The command levels each print to its nearest square orientation, but it does not know which way is up. A portrait print may appear on its side. Fix this with Image > Image Rotation > 90° Clockwise or 90° Counter Clockwise.
Layers
The command works best on a flat image or a single layer. If your scan has several layers, flatten a copy first, or make sure the layer with the scan is the active one. Run it on a duplicate if you are not sure.
Putting it together
Here is a typical session for a family album scanned four prints at a time.
- Place four prints on the glass with a gap between each, and scan at 600 ppi.
- Open the scan and save it as
album-page-03-scan.tif. - Run File > Automate > Crop and Straighten Photos.
- Four documents open. Inspect each at 100%.
- One print is on its side, so rotate it 90° clockwise.
- One has a thin gray edge. Use Image > Trim on the gray color, or crop it with the Crop tool.
- One has a crooked horizon in the photo. Use the Crop tool with Straighten.
- Save each as
album-03-a.tifthroughalbum-03-d.tif.
Exercise
You scan six prints and run Crop and Straighten Photos, but only five documents open. One of them shows two prints side by side. Give the likely cause, and two ways to get six separate photos.
Show answer
The two prints were close enough or similar enough in tone that the command treated them as one object. Option 1: rescan with a clear gap of about 1 cm between every print, then run the command again. Option 2: keep the current scan, draw a rectangular selection around each of the two prints one at a time, with a margin of background around each, and run the command on each selection. Closing the combined document without saving avoids duplicates.
Exercise
The command produces a document where the print edges are square, but the horizon in the photograph still slopes. Why did the command not fix it, and what do you use instead?
Show answer
The command straightens the physical print edges, not the content of the picture. The photo was printed with a tilted horizon, so square edges still contain a sloped horizon. Use the Crop tool with the Straighten option and draw a line along the horizon, then commit the crop.
Exercise
Why should you save the original scan before running the command, even though the command does not change it?
Show answer
The results open as unsaved, untitled documents, and the original is your only source if an edge is wrong or a print was merged with another. Saving it as a lossless file, such as TIFF or PSD, lets you run the command again later or crop by hand without rescanning.