Blog
Turning a Photo Roll Into a Document: What 'Images to PDF' Really Does
Converting photos into a PDF involves DPI math, page-size decisions, and embedding raster objects — a few small choices that quietly determine whether the result looks sharp or blurry.
A photo on your phone doesn't know how big it is. It knows how many pixels it has — say, 4032 by 3024 — and nothing else. "Big" and "small" only become meaningful once that pixel grid gets placed on a page with physical dimensions, which is exactly the translation that happens when a stack of photos becomes a PDF. Get the math wrong and you end up with a document where a receipt photo prints the size of a postcard, or a scanned page fills three sheets of paper. Get it right and the result is indistinguishable from a proper scan.
DPI is a relationship, not a property of the image
People talk about an image's DPI (dots per inch) as if it's baked into the file the way width and height are, but for most photos it isn't really — it's a ratio that only means something once you decide how large the image should print. A 4032×3024 pixel photo placed on a standard 8.5"×11" letter page, filling the width, works out to roughly 474 pixels per inch (4032 ÷ 8.5). Place that same photo on an A3 sheet instead and the effective resolution drops to around 288 pixels per inch, because the same pixel count is now stretched across more physical space. Neither number is "the DPI of the photo" in any absolute sense — DPI only exists at the moment pixels get mapped onto inches, and a page in a PDF requires exactly that mapping to be decided.
This is why "images to PDF" tools generally give you page-size and margin choices rather than just accepting arbitrary photos and calling it done: the tool needs to pick a target (Letter, A4, or match the image's own aspect ratio) before it can decide how many of the source image's pixels correspond to one inch of paper, and that decision directly determines whether small text in the photo — a phone number on a business card, the fine print at the bottom of a form — stays legible or turns to mush.
What actually goes into the PDF
Under the hood, a PDF page containing a photo is genuinely simple compared to a page of editable text: it's a page object with a content stream containing essentially one drawing instruction — "place this image object, scaled to this size, at this position" — plus an/XObject entry in the resources dictionary pointing to the actual embedded image data. That image data is typically kept in whatever compressed form it already had (a JPEG photo usually gets embedded as a DCTDecode stream, which is just the JPEG compression algorithm by another name) rather than being decompressed and re-encoded, which is why converting photos to PDF is usually fast and doesn't meaningfully degrade the source image — the bytes of the photo are mostly just wrapped in a PDF container, not reprocessed.
That "mostly" matters. If the target page size forces the image to scale down significantly — fitting a 4000-pixel-wide photo onto a page where it will only ever render at 800 pixels wide — some tools will downsample the image before embedding, both to keep the resulting file size reasonable and because there's no point shipping four times the pixel data a page can ever display. That's a real quality tradeoff, and it's one reason the same source photo can produce a noticeably smaller or larger PDF depending on what page size you choose.
One image per page, or several — and why orientation matters
Photos taken on a phone are usually portrait; standard document pages are usually treated as portrait too, but a landscape photo (a whiteboard shot, a wide receipt) forced onto a portrait page either gets shrunk down with large empty margins on either side, or rotated 90 degrees to fill the page properly. Rotation here is just a coordinate transform applied in the page's content stream — a /Rotate entry or a transformation matrix — not a pixel operation, so it costs nothing in quality. The decision of which approach to take (shrink to fit vs. rotate to fill) is a real usability question, since a rotated page reads fine on screen but can be awkward if you're printing a physical stack and want every page to have the same orientation.
Why this is different from scanning
It's worth being clear about what this process isn't: it's not OCR, and it's not "scanning" in the sense of correcting for the skew, shadows, and perspective distortion of a photo taken at an angle on an uneven surface. A proper flatbed scanner captures a page at a fixed, known distance and angle, which is why scanned documents look flat and uniform. A phone photo of a printed page carries whatever perspective and lighting the camera happened to capture, and simply embedding that photo into a PDF page preserves all of it — trapezoidal distortion, shadows, the works. Converting images to PDF is purely a container operation: it takes pixels that already exist and places them on a page, without attempting to detect or correct for how those pixels were captured. If you need a document that reads like a real scan, that correction step has to happen before conversion, not during it.
Multi-photo documents and file order
When combining several photos into one multi-page PDF, the sequence you select the images in becomes the page order in the output — there's no automatic sorting by timestamp or filename unless a tool explicitly offers that as a feature. This matters in practice more than it sounds like it should: someone photographing a ten-page contract, page by page, needs those photos to land in the PDF in the same order they were signed, or the resulting document reads out of sequence in a way that's easy to miss until someone else opens it. TheImages to PDF tool on this site lets you reorder thumbnails before generating the file for exactly this reason — the conversion math is the easy part; getting the sequence right is the part a human actually has to check.
