JPG to PDF: The Right Way to Convert Images to Documents
Turning a folder of .JPG images into a single PDF sounds like a solved problem. In practice, the first time you batch a set of scanned invoices or a photo portfolio into one file, the result is rarely what you expected.
Drag 25 6000x4000 photos into a generic converter and you typically get a 250 MB file that bounces off the recipient’s mail server. Half the pages come out sideways. The images sit inside thick white borders because the tool forced a 16:9 photo onto an A4 sheet.
None of that is necessary. PDF is not just an image wrapper — it defines a coordinate system with real-world dimensions, DPI, and compression. Once you understand the few settings that control those, conversion becomes predictable.
This guide covers page-size geometry (ISO 216), orientation logic, aspect-ratio fit modes, the DPI math behind print quality, and how to keep the final file small enough to email.
Convert locally. Don’t upload sensitive financial documents or client portfolios to unknown cloud servers. Our Image to PDF Converter runs entirely in your browser, so the files never leave your machine.
1. What a PDF Page Actually Is
To convert images correctly, it helps to know what a PDF is under the hood.
A JPEG or PNG is a grid of pixels. A PDF is closer to a drawing instruction set (it descends from PostScript). Every page has physical dimensions measured in points, where 1 point = 1/72 inch.
When you convert a .JPG to a .PDF, you don’t change the image. You create a blank sheet of a certain size and tell the PDF engine to draw the image onto it at a specific position and scale. That’s why the page size and the image’s aspect ratio are the two settings that matter most.
2. Page Size: A4 vs Letter vs “Fit to Image”
The most common mistake is accepting the default A4 or Letter size for content that was never meant to be printed.
Standard print sizes (A4 / Letter / A3)
If the PDF will end up on a printer, lock the page to a standard size:
- A4 (210 × 297 mm): the ISO 216 standard used by most of the world. The right choice for contracts, receipts, and general documents.
- US Letter (8.5 × 11 in): the standard in the US and Canada. Slightly shorter and wider than A4.
- A3 (297 × 420 mm): double the area of A4. Useful for blueprints, large diagrams, and wide spreadsheets.
Fit to Image
If the PDF is digital-only — a photo portfolio, a pitch deck, a UI mockup — don’t use paper sizes at all. Choose Fit to Image.
This reads each image’s pixel dimensions, calculates its aspect ratio, and builds a custom page that matches the image exactly. No white borders, no wasted margins, no scaling. Each page is sized to the content it holds.
3. Orientation and Aspect-Ratio Containment
If you enforce a fixed paper size like A4, you also have to tell the engine how to handle orientation.
Auto orientation
Auto Orientation checks each image’s aspect ratio and rotates the page to match:
- If
Width > Height, the page is set to Landscape. - If
Height > Width, the page stays Portrait.
This matters most with a mixed folder of phone photos, where vertical scans and horizontal whiteboard shots are jumbled together.
Forced orientation
For a slide deck or presentation, force Landscape across the whole document. If a stray portrait image sneaks into the batch, forcing orientation keeps the layout consistent instead of dropping in one vertical slide.
4. Fit Modes: Contain vs Cover
When an image is placed on a page with a different aspect ratio (say, a wide photo on A4), the engine has to reconcile the two shapes. The Fit Mode decides how.
Contain (the safe default)
Contain scales the image down until both its width and height fit inside the page.
- Pro: nothing is cropped — no pixels are lost.
- Con: if the ratios don’t match, you get letterboxing (white bars on two sides). This is the correct choice for legal documents, where losing the edge of a scan isn’t acceptable.
Cover (edge-to-edge)
Cover scales the image up until it fills the page completely, leaving no white space.
- Pro: clean full-bleed layouts for visual portfolios.
- Con: because the shapes differ, the engine crops the edges that overflow. Don’t use Cover for screenshots, scans, or UI mockups where edge content matters.
5. DPI Math and Color Profiles
A common misconception is that putting a low-resolution image into a PDF improves its print quality. It doesn’t.
When you print, the quality on paper depends on the image’s DPI (dots per inch). For magazine-quality print, the source image needs enough pixels to hold 300 DPI at the target size.
The 300 DPI table
For a print shop, your source .JPG files should meet these minimums:
| Target paper size | Dimensions (inches) | Minimum resolution at 300 DPI |
|---|---|---|
| US Letter | 8.5” × 11.0” | 2550 × 3300 pixels |
| A4 | 8.27” × 11.69” | 2480 × 3508 pixels |
| A3 | 11.69” × 16.54” | 3508 × 4960 pixels |
Feed an 800 × 600 web image into an A4 PDF and the engine stretches 800 pixels across 8 inches — the print comes out blocky. Always start from the original full-resolution files for print work.
RGB vs CMYK
Most .JPG files are saved in sRGB, which is tuned for screens. Commercial printers expect CMYK. If your PDF is headed for a print run, make sure the source images carry a CMYK ICC profile — otherwise bright blues and greens can print as muddy grey.
6. Keeping File Size Down
Large file size is the most common failure point. Compile 25 photos from a recent iPhone into one PDF and you can land at 150 MB, well past Gmail’s 25 MB limit.
This happens because the PDF embeds the raw image data. If each photo is a 6 MB file, 25 of them add up to roughly 150 MB.
Compress before you compile
For a digital-only PDF (emailing an inspector, filing an expense report, sharing over Slack), you don’t need 300 DPI. Screens need far fewer pixels. Add two steps before conversion:
- Downscale: use the Image Resizer to cap width/height at
1920px(1080p). That’s plenty for on-screen viewing and removes most of the pixels driving the file size. - Compress: run the resized files through the Image Compressor at about
0.80JPEG quality. This typically cuts another 60–80% with no visible loss in text legibility. - Compile: feed the optimized files into the converter.
That same 25-page PDF drops from ~150 MB to around 4 MB.
7. Two Real Workflows
Expense report (15 receipt photos)
- Pre-process: crop out the table/background. Convert to grayscale to shrink the file.
- Page size: A4 — accounting will likely print and file these.
- Orientation: Auto — some receipts are long and vertical, some are wide.
- Fit mode: Contain — don’t let Cover crop the totals at the edge.
- Margins: Medium — leave room for a three-hole punch.
UI/UX portfolio (8 Figma renders)
- Pre-process: downscale width to
2560px(1440p), compress to ~85% quality. - Page size: Fit to Image — don’t force wide renders onto paper shapes.
- Orientation: inherited from Fit to Image.
- Fit mode: N/A — Fit to Image removes the need for containment.
- Margins: None — edge-to-edge.
Further Reading
- SVG Optimization: SVGO Multipass Compression
- Image Cropping Mathematics and Composition Theory
- Browser Privacy: Why Client-Side Wasm Is Secure
- Base64 Mistakes: Don’t Base64 PDF Files
Build clean PDFs without leaving your browser. Our Image to PDF Converter uses WebAssembly to handle large image batches locally — no server uploads, and full control over page size, orientation, and fit.