Back to Blog
Guides

Phone Photos to Scans: Perspective & Shadows

Turn a phone photo of a contract, receipt or book page into a straight, evenly lit scan. Covers corner marking, enhancement modes and common mistakes.

AArtifree Editorial Team9 min read
Phone Photos to Scans: Perspective & Shadows

A phone scan really solves two problems

A flatbed scanner does two things well: the lens faces the paper squarely, and the light is even. A phone does neither, so photos of documents arrive with two defects — trapezoidal perspective and uneven brightness. Tilt the paper slightly and the bottom is wider than the top. Put a window on one side and half the page goes gray.

The document scan tool addresses exactly those two defects. You mark the four corners, it projects the paper back into a rectangle, then estimates the background brightness and flattens the shadows. The contrast and black-and-white modes are optional finishing steps on top of that.

Make the photo salvageable first

There is a limit to what post-processing can fix. Ten extra seconds at capture time saves a lot of parameter fiddling later.

  • Keep all four paper edges inside the frame, with a little margin. You need those edges to drag the corners against.
  • A dark desk beats a white one. White paper on a white desk blends into the background and the corners become guesswork.
  • Use side light and keep your own shadow out of the frame. Your phone, hand and body all block light; check the preview before pressing the shutter.
  • Do not use a direct flash. A specular highlight turns into a solid white patch, and binarization turns that patch into a hole.
  • Shoot as square-on as you can. Steep angles are recoverable, but the far end of the page receives fewer pixels and looks soft after correction.
  • Flatten book pages and folded contracts. Perspective correction maps a flat quadrilateral to a rectangle; it cannot undo a page that curves away from the surface.

Marking the four corners

The corner points decide the output proportions, and they matter more than any filter.

  1. Start at the top-left and go clockwise. Do not cross the points — a crossed quad flips the projection, which is obvious in the preview.
  2. Place each point just inside the paper edge, not on the text. On the text and you crop those lines; too far out and you pull the desk into the frame.
  3. Check the preview: text lines should sit horizontal and table borders parallel. Slight skew is acceptable; visible stretching is not.
  4. If the proportions look wrong, hit reset and mark again. Do not keep nudging a bad quad.

A useful rule: smaller corner marks magnify the content and make type look bolder, while larger marks add margin or background. Sitting on the paper edge is the stable choice.

What each enhancement mode does

ModeWhat it doesGood forAvoid when
OriginalPerspective onlyArchival scans that must keep original colorVisible shadows or gray paper
DeshadeEstimates background brightness and rescales, keeping colorColored receipts, contracts with red stamps, book pagesPaper is heavily yellowed
Boost contrastDeshade plus a brightness-range stretchFaint print, poor photocopies, pencil notesThe page contains color illustrations
Black & whiteDeshade plus Otsu auto-thresholdingText-only contracts, books, printoutsColor images, stamps, light handwriting

Black and white is not the "best" mode. It is the most aggressive: only two tones survive, so red stamps, colored logos and pencil marks close to paper tone disappear or turn hollow. For text-only archives it produces the cleanest, smallest file. If the page contains anything you need to see, drop back to deshade or boost contrast.

My usual order: check deshade first, switch to boost contrast if the text looks washed out, and only go black and white after confirming the page is text only. Each switch regenerates the preview, so compare before and after directly instead of guessing.

Output format and size

PNG and JPG are both supported, and the filename gets a _scan suffix so it stays distinct from the original photo.

  • Text archives: PNG is sharper, with no JPEG ringing around letterforms, which suits long-term storage.
  • Colored contracts and receipts: JPG is smaller and easier to email or upload.
  • If you plan to extract text: export PNG and run it through the image OCR tool. That beats feeding a blurry photo straight into recognition.

The long edge is capped at 3000 pixels. An A4 page at 300 dpi would be 2480×3508, so the height gets trimmed to about 3000, landing near 254 dpi. That is fine for archiving, printing and OCR. If a project explicitly demands true 300 dpi originals, use a scanner.

Five things that go wrong

Corners off the edge, content stretched. Circular stamps turn oval. Remark the corners; do not try to fix it with scaling.

Creases and curled paper. Text in the middle warps along with the page, and perspective correction cannot help. Flatten and reshoot, or shoot the page in two halves.

A highlight over the text. Binarization turns it into a white hole. Change the light angle and reshoot; switching modes will not recover the pixels.

Show-through from the reverse side. Print on the back of thin paper bleeds through, and binarization promotes it to body text. Use deshade, or slip a blank sheet underneath.

A gray band at the edge of a hard shadow. Deshading rescales against estimated background brightness, so a sharp shadow boundary can leave a faint gray strip. Crop it, or move so the shadow misses the page.

Fingers in frame and clutter over the paper edge are not repaired by the tool. It corrects geometry and background; it does not paint content out.

A full run: archiving a contract

  1. Set up on a dark desk with side light, paper filling roughly 80% of the frame.
  2. Take one shot and check that all four corners are visible, with no glare or hand shadow.
  3. Upload, then drag the corners clockwise and confirm the text lines are horizontal.
  4. Start with deshade; switch to boost contrast if the print looks washed out.
  5. If the page is text only and the red stamp can be sacrificed, switch to black and white for the archive copy.
  6. Download the PNG for storage, and export a JPG if you need to email it.

For a three-to-five-page contract, the result is close enough to a real scan, and the file never left your device.

When a real scanner still wins

Legal or tender documents that demand a scan, double-sided multi-page feeding, bound books that need curve removal, and strict 300 dpi output — a phone cannot replace those. For sending a contract to a colleague, handing a receipt to accounting, or turning a book page into editable text, a phone plus this tool is enough. That is especially true for ID cards and contracts you would rather not upload anywhere.

FAQ

Are images uploaded?

No. Perspective correction and deshading run locally in the browser on Canvas; files never leave the device.

Can it detect the paper edges automatically?

This version requires manual corner marking. Automatic detection tends to fail on cluttered backgrounds or when the paper color is close to the desk, so manual control is more reliable.

Does it handle multiple pages or batches?

One image at a time. Export each page, then combine them with image to PDF.

Why did the proportions change after correction?

The tool maps the quad you marked to a rectangle. Corners placed tight to the paper edge preserve real proportions; marking inside the paper magnifies content, marking outside adds margin.

Can it remove fingers or desk clutter?

No. It handles geometry and background only. Fingers, coffee cups and staples stay in the image — reshoot or crop.

Why did a red stamp vanish in black-and-white mode?

Otsu thresholding pushes near-paper reds to white. To keep stamps, use deshade or boost contrast and export in color.

Want to try the features mentioned in this article?

Try Document Scanner Now

Related Articles