How to Extract Images From a PDF at Full Quality

By Docmint Team · · 4 min read

Save the photos and logos inside a PDF at the resolution they are stored at, as PNG or JPG, instead of taking blurry screenshots. Here is how it works.

To get the pictures out of a PDF at their original quality, extract the embedded image files instead of taking screenshots. In Docmint's Extract Images, drop in the PDF, choose PNG or JPG, set a minimum size to skip icons and lines, and click Extract images. Each picture is saved at the resolution stored in the PDF, which is often higher than it appears on the page, and you can download the files one by one or as a ZIP.

Why not just take a screenshot?

A screenshot captures whatever is on your screen at the current zoom level. A photo that fills a quarter of a page might be stored in the PDF at several thousand pixels across, but a screenshot of it will only be as large as it is on your monitor. You also pick up page edges, text and anything overlapping the image.

Extraction reads the image data stored in the file, so you get the picture itself, at its own size. For a brochure, a product catalogue or a report full of photos, it also saves a lot of time: every image in the document comes out in one pass.

What counts as an image in a PDF?

Photos, raster logos, screenshots pasted into a document and scanned pages are all stored as images, and all of them can be extracted. A scanned PDF is usually one image per page, so extracting from it gives you the scans themselves.

Many things that look like pictures are not images. Charts made in a spreadsheet, diagrams, icons from a design program and many logos are drawn with vector shapes, and text is text. None of these are stored as pixels, so there is nothing to extract. To capture them, render the page instead with PDF to PNG or PDF to JPG. If you only need part of the page, crop it first with Crop PDF.

How to extract images with Docmint

The PDF is processed in your browser and is not uploaded.

  1. Open Extract Images and drop in one or more PDFs.
  2. Choose PNG or JPG under Save as.
  3. Set Skip images smaller than: keep everything, 50 px (the default), 150 px or 400 px.
  4. Optionally enter a page range to extract from only some pages.
  5. Click Extract images. Each image is saved as a separate file, named after the PDF and the page it came from.
  6. Download the images individually, or all of them as a ZIP.

PNG or JPG: which should you choose?

PNG gives you the decoded pixels exactly, with nothing lost, and it keeps transparency, so a logo with a transparent background stays transparent. The cost is size: a photo saved as PNG can be several times larger than the same photo as JPG.

JPG is re-encoded at high quality, which makes much smaller files and suits photos you will put in an email, a slide or a web page. It is not bit-for-bit identical to the original, and JPG has no transparency, so transparent areas become white. A practical rule: PNG for logos, graphics and anything you will edit further; JPG for photos you just want to use.

Skipping icons, lines and repeated logos

PDFs often contain small images you do not want: bullet points, icons, decorative rules and spacer images. The minimum size setting skips any image whose width or height is below the value you pick. The default of 50 px drops most of these. Raise it to 150 px for photos and figures only, or 400 px for large images only. If a picture you expected is missing, lower the setting to Keep everything and run it again.

An image repeated on several pages, such as a logo in the header, is saved once rather than once per page.

Results that may surprise you

  1. An image can come out larger than it looks on the page. The page may show only part of a picture, while the file stores the whole thing.
  2. Some programs store one picture as several strips or tiles. Each piece is saved as a separate file; render the page with PDF to PNG if you need it as one image.
  3. Very large images in a long PDF take memory to decode. If your browser slows down, extract a page range at a time.
  4. A PDF with no embedded images, such as a document of plain text and vector charts, produces no files. Use PDF to JPG or PDF to PNG for those.

A note on reuse

Extracting an image from a PDF does not change who owns it. Photos in a supplier's catalogue or a published report usually belong to their creator, so check the terms before reusing them outside your own work. For your own documents, such as recovering original photos from an old brochure whose source files are lost, extraction is often the quickest way to get them back.