Skip to content
← All articles
imagesscanningcropstraightendocument photo

Straighten a Crooked Photo of a Document

You photographed a page and it came out tilted and trapezoid-shaped. Those are two different defects, and only one of them is fixed by rotating.

Convertlix8 min read

A crooked photo of a page is usually two different defects at once, and they need different fixes: the page is tilted a few degrees within the frame, which rotating and re-cropping fixes, and the page is a trapezoid rather than a rectangle, which rotating cannot touch at all. The trapezoid comes from holding the camera at an angle to the paper, so one edge of the page was physically closer to the lens than the other — no amount of turning the image makes the far edge as long as the near edge.

On Android, Convertlix's Image Cropper crops and straightens any image on the handset, so the photo never leaves the device — no upload, no server-side copy, nothing to retain. The scope, up front: Android 8.0 or later, sign-in required (there is no guest mode), 25 MB per file on the free tier against a server-set monthly allowance of conversions shown in the app, and the corrected image lands in Downloads. The rest of this page is about telling the two defects apart, because that is what decides whether the fix works.

Tilt or trapezoid? Look at the opposite edges

The test takes five seconds and it saves you fighting the wrong problem.

Look at the two long edges of the page in your photo:

  • Both edges are the same length, and the whole rectangle is turned a few degrees. That is tilt (rotation, or "skew"). The camera was parallel to the paper but not square to it. Rotating the image by the same few degrees and re-cropping fixes it completely.
  • One edge is visibly shorter than the other, or the page narrows towards the top. That is perspective, also called keystone distortion. The camera was not parallel to the paper. This is a projection, not a rotation, and correcting it means stretching the short edge back out — a different transform entirely.

You can have both, and usually do. The order to fix them in is perspective first, then tilt, then crop, because correcting perspective changes the angles you were about to level.

The numbers are worth knowing, because they explain why "it looked fine on the screen" is so often wrong. Tilt the phone about 15° away from parallel over an A4 page and the far edge comes out measurably shorter than the near edge — enough that the top line of text is smaller than the bottom line. At 5° it is barely visible to you and still visible to a reviewer looking at a stack of pages. Standing directly over the page, centred, with the phone flat is the one capture position that makes both defects zero, which is why Scan a Document to PDF Offline (Android) spends most of its advice on where you stand rather than on settings.

What straightening costs you

Rotating a raster image by an arbitrary angle is not free, and this is the part most guides skip.

To turn an image by 4°, every output pixel has to be computed by interpolating between input pixels that no longer line up with the grid. That is resampling, and it softens edges slightly — on a photograph you will never notice, on 8 pt text you sometimes can, particularly around the thin strokes of letters.

The exception is exact quarter turns. A 90°, 180° or 270° rotation maps every pixel onto exactly one other pixel, so it needs no interpolation and loses nothing; on a JPEG it can even be done without re-encoding at all when the dimensions fall on the 8 × 8 block boundaries the format uses. That is a genuine mechanical distinction, not a marketing one: turning a sideways page is free, levelling a tilted one is not.

So: level a tilted page once, from the original, and don't keep nudging it. Three successive 1.5° corrections cost three resampling passes for the same 4.5° result.

FixesQuality costWhat you lose
Exact 90° / 180° turnA sideways or upside-down pageNone — pixels map 1:1Nothing
Small-angle rotation + cropTilt within the frameOne resampling pass; slight edge softeningThe corners, to the crop
Perspective correctionA trapezoid pageResampling, uneven across the frameSharpness at the stretched edge
Reshoot the photoBoth, properlyNoneTwo minutes, and the paper has to be in front of you

Note the third row: perspective correction stretches the compressed edge back out, which means it is inventing detail there by interpolation. The far edge of a badly-angled page comes back geometrically correct and genuinely softer than the near edge. That is unavoidable, and it is the reason reshooting beats correcting when the paper is still on the table.

Why a crooked page matters beyond looking untidy

Two concrete reasons, both of which cost you something later:

Text recognition degrades with skew. OCR engines segment a page into lines and then into characters, and line detection assumes text runs horizontally. A few degrees is usually tolerated; past roughly 5–10° accuracy starts dropping, and a page that is also keystoned confuses the engine further because the line spacing changes down the page. Straighten before you run recognition — Copy Text Out of a Photo or Scan (Android) covers that step, and it will give you a noticeably better result on a level page.

A tilted page in a submitted bundle reads as carelessness. If the photos are going into a PDF for an application, every page arriving at a slightly different angle is the first thing a reviewer notices, before they read a word. Turn Photos Into One PDF for an Upload (Android) covers assembling the bundle; straighten the pages before that step, not after, because once they are inside a PDF the page images are harder to work on.

How to straighten a photo of a document

  1. Diagnose it first. Compare the two long edges of the page. Equal length means tilt only; unequal means perspective as well, and perspective has to be corrected before levelling makes sense.
  2. Work from the original photo. Not a version you already cropped, not a WhatsApp copy. Every correction is a resampling pass, and they compound.
  3. Correct perspective before rotation. Pulling the corners back to a rectangle changes the angle of everything in the frame, so levelling first just means doing it twice.
  4. Level the page in one adjustment. Use a straight line in the document itself as your reference — the top line of text or a printed table rule is more reliable than the paper edge, which may genuinely be cut crooked. In Convertlix, open Image Cropper, pick the photo through Android's picker, and straighten and crop in the same pass.
  5. Crop to the page, leaving a thin even margin. Rotation leaves wedge-shaped empty corners; the crop removes them. A 2–3% margin looks deliberate, a zero margin looks like you clipped the text.
  6. Check the smallest text at 100% before you use the file. Resampling softens letter strokes. If the footnotes have gone mushy, the answer is a reshoot, not a sharpening pass.

When this doesn't work

  • A page photographed far off-axis. Correcting a severe angle stretches the far edge so much that the text there is reconstructed rather than recorded. Past roughly 30° it looks wrong however carefully you do it.
  • Pages from a bound book. The paper near the spine physically curves away from the lens. A 2D transform cannot flatten a 3D curve — the fix is a photocopier, or pressing the book flatter, not software.
  • Motion blur or missed focus. No crop, rotation or perspective correction recovers detail that was never captured. This one is always a reshoot.
  • Glare and hotspots. A specular highlight from a lamp or a laminated page has clipped those pixels to white. Straightening the page makes it a tidy photo of a page with a hole in it.
  • Folded or creased paper. The fold changes the surface angle mid-page, so a single perspective correction can only be right on one side of the crease.

FAQ

What's the difference between rotating and straightening a photo?

In everyday use they're used interchangeably, but they describe different transforms. Rotating turns the whole image around its centre, which fixes a page that is tilted but still rectangular. Straightening a keystoned page — one that photographed as a trapezoid because the camera was angled — needs a perspective correction that pulls the corners back to a rectangle, and rotation cannot achieve that no matter what angle you choose.

Does straightening a photo reduce its quality?

Slightly, for any rotation that isn't an exact quarter turn. An arbitrary angle requires every output pixel to be interpolated from input pixels that no longer align to the grid, which softens fine edges — invisible on a photograph, occasionally visible on small text. A 90°, 180° or 270° rotation maps pixels one-to-one and costs nothing, so turning a sideways page is genuinely free.

Why does my document photo look narrower at the top?

Because the camera was tilted rather than held parallel to the page, so the top of the sheet was further from the lens than the bottom and projected smaller. It is ordinary perspective, the same reason railway tracks converge in a photo. Correcting it needs a perspective transform; standing directly over the centre of the page with the phone flat prevents it entirely.

Does Convertlix upload my photo?

No. The image is opened through Android's own file picker, cropped and straightened on the phone, and saved back to the device — nothing is sent anywhere, and the app has no storage permission, so it cannot read anything you did not hand it. Its network calls carry identity, licence, quota, configuration and payment data, never an image. Sign in once, switch on airplane mode, and it still works.

Is there a free way to fix a crooked document photo?

Yes, and one of them is excellent. Snapseed's Perspective tool is free, runs on the phone and does keystone correction better than most paid options — if you have a badly angled page, it is genuinely the thing to reach for and worth saying so plainly. On a computer, GIMP has a Perspective tool and ImageMagick has -deskew for automatic small-angle correction of scanned text, both free and local. Google Drive's and Microsoft Lens's document scan modes also apply automatic perspective correction at capture time, which avoids the problem rather than fixing it.


If the photo is on your phone and the page came out leaning, work out whether it is tilted or keystoned first, then correct it once from the original.