You need to send a signed form, a set of receipts or a few pages of a contract, and there is no scanner nearby. A phone camera and a browser are enough. The difference between a PDF that is easy to read and one that is a 20 MB pile of tilted, shadowy photos comes down to a few choices made before and after you press the shutter.
This guide walks through those choices in order and shows, with a measured 5-page example, how much each one changes the size of the final PDF.
Step 1: Light and position
Most of what makes a phone scan look bad happens when the photo is taken, and it cannot be fully fixed later.
- Use even light. Daylight from a window to the side, or a ceiling light that is not directly above you, works well. The common mistake is to stand between the light and the page, which puts the shadow of your phone and hands across the paper.
- Avoid the flash for glossy paper. A flash straight on can leave a bright spot that wipes out text. For matte paper it can help in a dark room; take one photo with and one without and compare.
- Lay the page flat on a contrasting surface. A white page on a dark table is easier to crop, by eye or by an app, than a white page on a white desk.
- Hold the phone parallel to the page. If the phone is tilted, the page becomes a trapezoid: the far edge is narrower than the near one, and text at the far end is smaller. Holding the phone directly above the centre of the page avoids most of this.
- Fill the frame, but leave a small border. The more of the photo the page covers, the more pixels go to the text. A thin border of table around the page makes the crop easier.
- Hold steady. Brace your elbows on the table, or tap to focus on the text and wait a moment before shooting. Blur cannot be undone by any tool.
Dim light has a second cost beyond looks: cameras compensate by amplifying the signal, which adds grain (noise), and grain makes JPG files larger. Our measurements below show how much.
Step 2: Crop and straighten
A raw photo contains the table, your fingers and a tilted page. Before building the PDF, crop each photo to the page edges and straighten it. Your phone's photo editor can usually crop and rotate; dedicated scanner apps can also correct the trapezoid shape automatically.
TabGarden's Images to PDF tool does not crop or straighten. It places each image on a page as it is. So the crop has to happen first, in your phone's editor or another app.
Cropping matters for size too. In our example, cropping alone cut the PDF by 32% in good light and 47% in dim light, because the cut-away table area was full of detail and noise.
Step 3: Bring the size down to what a page needs
A modern phone photo has far more pixels than a document page needs. Our test photos were 3024 × 4032 pixels (12 megapixels). An A4 page rendered at 150 dpi is 1240 pixels wide, and at 200 dpi 1654 pixels wide (see PDF page size and DPI for the formula). Text at those sizes is easy to read on screen and prints cleanly at normal size.
Use Resize Image to set the width, for example 1654 px for documents with small print or 1240 px for ordinary letters and receipts. If the files are still too large, Compress Image lowers the JPG quality; its default is 75.
Step 4: Put the pages in order
Images to PDF puts the images in the PDF in the order of its list, top to bottom. When you select several photos at once, the order they arrive in depends on your browser and system, so always check the list and use Up and Down to fix it before clicking Start. Naming the photos 01, 02, 03 before you start makes mistakes easier to spot.
If you photographed pages with the phone held sideways, the tool reads the orientation tag of each JPG and turns the pixels upright, so pages come out the right way in every PDF viewer. The details are in why phone photos turn sideways.
Step 5: Choose the page size: A4 or "Same as image"
The tool offers two page sizes.
- Same as image makes each page exactly the size of its image, at one point per pixel. A 1240 × 1754 image becomes a 1240 × 1754 pt page, which is 43.7 × 61.9 cm. An uncropped 3024 × 4032 photo becomes a 106.7 × 142.2 cm page. On screen this does not matter, since viewers zoom to fit. When printing, the viewer has to scale it down, and some print dialogs need "fit to page" turned on.
- A4 puts every image on a 210 × 297 mm page with a 24 pt (about 8.5 mm) margin, scaled down to fit and centred. Images are never scaled up, so a very small image stays small in the middle of the page. A 1240 px wide image fills the 547 pt usable width, which works out to about 163 pixels per inch on paper.
For documents that someone may print, or that will be filed with other A4 documents, choose A4. In our test the choice made no meaningful difference to file size: the A4 PDF was at most about 200 bytes larger than the "Same as image" PDF, because the image data is identical and only the page description differs.
Measured: what each step does to file size
Method
- Pages: five synthetic "phone photos" of a printed A4 document, made in headless Chromium 129. Each photo is 3024 × 4032 pixels with a brown desk background, a white page covering about 82% of the frame height and tilted by up to 3 degrees, a heading and 52 lines of printed-style text. These are generated images, not real photos.
- Good light: even lighting, slight random noise (±3 levels per pixel).
- Dim light: a shadow gradient across the page darkening one corner by up to 45%, and stronger random noise (±14 levels). Real cameras apply their own noise reduction, so real dim-light photos may compress better or worse than this; treat the dim figures as an illustration of the direction, not a prediction for your phone.
- Steps: encode with the browser's
canvas.toBlob(as the site's tools do); crop and straighten to the page; resize to 1654 px and 1240 px wide; encode at JPG quality 0.92 and 0.75; a greyscale version; a black-and-white (thresholded) PNG version. - PDF: built with pdf-lib using the Images to PDF tool's logic, in both page modes. The figures below are for the five-page PDF with "Same as image" pages (A4 was within 200 bytes). 1 MB = 1,048,576 bytes.
The script and the CSV are in the site's research/scan-documents-to-pdf-with-phone-photos/ folder.
Good light, 5 pages
- Full photos, 3024 × 4032, JPG 0.92: 9.94 MB
- Cropped and straightened, 2337 × 3306, JPG 0.92: 6.75 MB
- Cropped, 1654 px wide, JPG 0.92: 3.95 MB
- Cropped, 1240 px wide, JPG 0.92: 2.59 MB
- Cropped, 1240 px wide, JPG 0.75: 1.49 MB
- Same, converted to greyscale, JPG 0.75: 1.49 MB
- Same, black and white, PNG: 0.39 MB
Dim light, 5 pages
- Full photos, JPG 0.92: 22.67 MB
- Cropped and straightened, JPG 0.92: 11.91 MB
- Cropped, 1654 px wide, JPG 0.92: 6.29 MB
- Cropped, 1240 px wide, JPG 0.92: 3.91 MB
- Cropped, 1240 px wide, JPG 0.75: 1.88 MB
- Same, greyscale, JPG 0.75: 1.88 MB
- Same, black and white, PNG: 0.48 MB
What the numbers show
- Light came first. The same five pages in dim light made a PDF 2.3 times larger than in good light (22.67 vs 9.94 MB) before any other step. In our synthetic test that came from the added noise.
- Crop, then resize, then compress. Each step cut the size by about a third to a half: 32 to 43% per step in good light, 38 to 52% in dim light. Together they took the good-light PDF from 9.94 MB to 1.49 MB, and the dim-light one from 22.67 MB to 1.88 MB, while keeping a full A4 page at 150 dpi.
- Greyscale JPG saved almost nothing (about 1 KB on 1.5 MB). Browsers save JPG in colour even when every pixel is grey, so converting to grey is for looks, not size.
- Black and white PNG was smallest by far, about a quarter of the JPG 0.75 version. It also had a surprise: the five PNG files totalled 0.73 MB, but the PDF made from them was 0.39 MB. pdf-lib unpacks PNG images and stores them with its own compression, which in this case was more compact. The cost of black and white is real: grey shading, stamps, photos and faint pencil turn into solid black or vanish. Use it only for clean, typed text, and only if your scanning app offers a black-and-white mode.
A quick recipe
- Photograph each page flat, in even light, phone held level above it.
- Crop and straighten each photo in your phone's editor or a scanner app.
- Resize to 1654 px wide (small print) or 1240 px wide (ordinary text) with Resize Image.
- If the total is still too large, compress at quality 75 with Compress Image. For how quality and size trade off, see image quality vs file size.
- Open Images to PDF, add the files, check the order, choose A4, and click Start.
- Open the PDF and page through it once before sending.
After the PDF is made
- Adding pages later. Make a PDF of the new pages and join it with Merge PDF. Merging copies pages without recompressing images, so it does not add quality loss. What a merge keeps and drops is covered in what merging PDFs keeps and loses.
- Removing a bad page. Use Split PDF to extract the pages you want to keep.
- Searching the text. A PDF built from photos contains pictures of text, not text. You cannot search it or copy words out of it unless you run OCR software on it.
- Privacy. The photos may show more than the page: the edge of a desk, other papers, a reflection. Cropping removes that from the PDF. The Images to PDF tool runs in your browser, so the photos are not uploaded to build the PDF.
Common questions
Why is my PDF so big when it is only a few pages?
Each page is a full photo. A 12-megapixel JPG can be several megabytes, and the PDF holds it unchanged. Cropping and resizing before building the PDF is the most effective fix, as the numbers above show.
Will resizing make the text unreadable?
At 1240 px across an A4 page, the body text of our synthetic pages (about 10.5 pt on the A4 page) stayed readable when we viewed it at 100%. If your document has very small print, footnotes or signatures that must stay sharp, use 1654 px or keep the crop at full size.
Should I use PNG instead of JPG for scans?
For colour or greyscale photos of paper, JPG was much smaller in our tests. PNG only won when the page was reduced to pure black and white.