Image to PDF: Complete Guide
Turn photos and scans into one PDF document in your browser. Page sizes, margins, orientation, quality and ordering — all explained.
Should your PDF use JPG or PNG images? File size, text sharpness, transparency and the best settings for each document type.
CompressMyPic Editorial Team · Published Nov 17, 2026 · 11 min read

When you build a PDF from images, the format of those images matters more than most people expect. A JPG page and a PNG page can look identical on screen yet behave very differently.
The choice affects file size, text sharpness, and how the PDF prints. For a photo album, one format wins; for a scanned contract, the other does.
This article compares JPG and PNG inside PDFs, so you can pick the right format before you generate, not after. Once you have chosen, the Image to PDF tool turns your images into a clean multi-page PDF in your browser, with page size, margins, and quality settings you control.
JPG is a lossy format, which means it discards detail to shrink the file. Inside a PDF, a JPG page stores the photo with that same compression, keeping the document small.
Photos compress beautifully as JPG. A full-page photograph at 85 percent quality looks clean and keeps the PDF light enough to email.
The weakness is text. Small letters and sharp lines get soft edges in JPG, because the compression smears high-contrast boundaries. A scanned page of small print suffers first.
Use JPG inside PDFs for photographs, photo albums, and any page where the image matters more than the text on it.
PNG is a lossless format, so every pixel is stored exactly. Inside a PDF, a PNG page is a perfect copy of the source image, with no compression damage at all.
Text and line art stay razor sharp in PNG. A scanned contract, a form, or a diagram looks exactly as clean in the PDF as it did in the original scan.
The price is file size. A detailed photograph stored as PNG can be several times larger than the same photo as JPG, and a long PDF of PNG photos becomes heavy fast.
Use PNG inside PDFs for scanned documents, forms, receipts, and any page where readable text is the priority.
A ten-page photo album built from JPGs might weigh 3MB, while the same album built from PNGs could weigh 15MB or more. That gap matters for email attachments and slow connections.
The gap shrinks for simple images. A mostly white scanned form compresses well as PNG, because large flat areas cost little to store losslessly.
It grows for detailed photos. A busy landscape or a group portrait has endless texture, and PNG must describe every pixel of it exactly.
If the PDF must stay under an email limit, JPG is the practical choice. If size does not matter, PNG gives you the sharpest result.
Scanned text is the clearest case for PNG. Letters are high-contrast shapes, and JPG compression blurs their edges, making small print harder to read.
At high JPG quality, the blur is mild, but it is still there. At medium quality, small print can become genuinely hard to read, especially after printing.
PNG keeps every edge crisp. A signature, a stamp, or a handwritten note stays exactly as sharp as the scan, which matters for official documents.
For any document that will be read rather than admired, PNG is the safer format. The file is bigger, but the words are the point.
ID photos and portraits are photographs, so JPG is the natural choice. Skin tones and smooth gradients compress well, and the file stays small.
A passport photo inside a PDF does not need lossless storage. The face stays recognisable at 85 percent JPG quality, and the PDF remains easy to send.
PNG only helps for ID photos when the photo has sharp overlaid text, such as a name printed across the image. In that rare case, PNG keeps the text crisp.
For a set of ID photos, JPG keeps the PDF light and the faces clear. That is the combination most submission systems expect.
A scanned contract is mostly text on white paper. PNG stores that efficiently, since large white areas cost almost nothing in a lossless format.
The text stays sharp, the signature stays legible, and the stamp stays clear. A JPG scan of the same page would soften all three.
Scans of old or faded documents benefit even more. Faint pencil marks and light stamps are exactly the details JPG compression destroys first.
For any scan that must be read, archived, or submitted officially, build the PDF from PNG files. The extra size is a fair price for legibility.
Neither format keeps transparency inside a PDF the way you might expect. Transparent PNG areas become white when the PDF is generated, because the PDF page needs a background.
For most documents, white is correct. A transparent logo on a white page looks exactly as it should, and it prints cleanly.
If you need a logo on a coloured background, convert the PNG to JPG first with a matching matte colour. The PNG to JPG converter lets you pick the exact fill colour.
Photographs never have transparency, so this only matters for logos and graphics. For ordinary documents, you can ignore it.
For JPG pages, set the PDF quality slider to high for documents with text, and to medium for photo albums. High keeps small print readable; medium keeps photo PDFs small.
For PNG pages, the quality slider has less effect, since PNG is lossless. The PDF still compresses the image data, but the pixels themselves are stored exactly.
A practical rule: JPG at 85 percent for photos, PNG at any setting for text. That combination covers nearly every document you will build.
Always generate once and check the result. Open the PDF, zoom into the smallest text, and confirm it reads cleanly before you send it.
Real documents are often mixed. A visa application might contain a JPG photo, a PNG scan of a passport, and a JPG scan of a bank statement.
The PDF builder accepts mixed formats in one document. Each page keeps its own source format, so you do not need to convert everything to one format first.
Convert only the pages that need it. Turn a PNG photo into JPG to save space, but leave a PNG scan alone so its text stays sharp.
Check the final file size after generating. If it is too large, the photo pages are the best place to save space, not the text pages.
Choose JPG when the pages are photographs. Albums, portfolios, and ID photos all suit JPG, and the PDF stays small and easy to share.
Choose PNG when the pages are documents. Contracts, forms, receipts, and scans all suit PNG, and the text stays sharp at any zoom level.
Choose a mix when the document has both. Photos as JPG and scans as PNG give you the best of both worlds in a single PDF.
When in doubt, ask what the reader will do. If they will read it, use PNG. If they will look at it, use JPG.
A student submitting a thesis scan uses PNG pages at A4 with Contain placement. Every page is readable, and the PDF prints cleanly for the examiner.
A photographer sending a portfolio uses JPG pages at Fit to Image Size. The photos look rich, the file is small enough to email, and no client complains about download time.
A freelancer invoicing a client uses PNG for the scanned receipts and JPG for the photo of the delivered work. The mixed PDF is sharp where it matters and small where it counts.
Each example follows the same rule: text gets PNG, photos get JPG, and the document serves its reader first.
Prepare your images before building the PDF. Convert PNG photos to JPG when size matters, and convert JPG scans to PNG only when you need to edit them repeatedly.
Name your source files in page order, such as 01-passport.png and 02-photo.jpg. The builder adds files in the order you pick them, and numbered names prevent mistakes.
Generate once, check, and regenerate if needed. The quality slider and placement settings are quick to change, and a second generation costs only seconds.
Keep the source images after generating. If the recipient asks for a different page size or a smaller file, you can rebuild from the originals without rescanning anything.
Resolution decides how sharp an image looks when printed from a PDF. A page built from a 150 DPI image looks fine on screen but soft on paper, while a 300 DPI image prints crisply.
Most phone photos and scans are high enough resolution for screen viewing. They only become a problem when printed at large sizes, where the pixels stretch too far.
JPG and PNG handle resolution the same way inside a PDF. The format does not set the DPI, the pixel count does, so a high-resolution JPG prints just as sharply as a high-resolution PNG.
Check the pixel dimensions of your source images before building. A 1000-pixel-wide image printed on an A4 page is roughly 120 DPI, which is acceptable but not excellent.
For documents that will be printed, use the highest-resolution sources you have. A sharp source makes a sharp PDF, regardless of whether the format is JPG or PNG.
Most images are RGB, with full colour, while some scans are grayscale, with only shades of grey. The choice affects both file size and readability.
Grayscale scans are smaller than colour scans, since they store one value per pixel instead of three. A grayscale contract is often half the size of the colour version.
Colour matters for stamps, signatures, and highlighted text. A red stamp in grayscale looks grey, which may reduce its value as evidence, so keep colour for official documents.
JPG handles grayscale efficiently, compressing the single channel well. PNG handles it too, though the file is larger, since lossless storage cannot discard the paper texture.
For a document that must be read rather than admired, grayscale JPG at high quality is the practical choice. It is small, sharp, and honest about what the document contains.
Sometimes the source images need converting before they go into the PDF. A PNG photo that is 12MB will bloat the PDF, while the same photo as JPG is 1MB.
Convert PNG photos to JPG before building when the PDF must stay small. The PNG to JPG converter shrinks them dramatically with little visible change.
Convert HEIC photos to JPG first if the PDF builder struggles with them. The HEIC to JPG converter produces standard files that any tool can handle.
Do not convert PNG scans to JPG before building. The scan's text is the content, and JPG compression softens it, while PNG keeps it sharp through the PDF.
The rule is simple: convert photos for size, keep scans as PNG for sharpness. That split gives you the smallest PDF that still reads cleanly.
Most upload portals cap PDF size at 5MB, 10MB, or 25MB. A long PDF of high-quality scans can easily exceed the smallest of those limits.
JPG pages help here, since they compress far better than PNG pages. A ten-page photo document as JPG might be 3MB, while the same document as PNG could be 15MB.
If the PDF is too large, lower the quality slider one step and generate again. Photos compress well at medium quality, while scans need a gentler touch.
Split a very long document into two PDFs if the size still exceeds the limit. Two files of 8MB each pass a 10MB cap, while one file of 16MB does not.
Always check the portal rules before generating. The size limit, the page size, and the accepted formats are usually listed on the upload page, and reading them saves a rebuild.
DPI decides how sharp a scan looks when printed from a PDF. A scan at 150 DPI looks fine on screen but soft on paper, while a scan at 300 DPI prints crisply.
Most documents need 200 to 300 DPI. Text scans at 200 DPI are readable, while 300 DPI is better for documents with small print or fine signatures.
Photos need higher DPI when printed large. A photo scanned at 300 DPI prints well at its original size, but a larger print needs a higher-resolution scan.
Higher DPI means larger files, in both JPG and PNG. A 600 DPI scan is four times larger than a 300 DPI scan, so choose the lowest DPI that meets the need.
For documents that will only be viewed on screen, 150 DPI is enough. The screen cannot show more detail than its own resolution, so extra DPI only wastes bytes.
The format choice is a small decision with a visible result. Photos want JPG, documents want PNG, and mixed documents want both. For the full guide, read the Image to PDF: Complete Guide or follow the steps in How to Convert an Image to PDF. To prepare images first, use the Image Converter or the JPG to PNG converter.
Turn photos and scans into one PDF document in your browser. Page sizes, margins, orientation, quality and ordering — all explained.
Turn one photo or a whole set into a PDF in minutes. Upload, order the pages, pick a size, and download your document — free, in your browser.
BMP vs JPG compared: why BMP files are enormous, how much JPG saves, quality, colour depth, and when each format still makes sense.
Convert BMP bitmaps to JPG in a few steps. Upload, set quality, preview the savings, and download — one file or a whole folder of scans.