# Extract the images from a PDF at full quality

> Markdown version of https://stella.sh/how/pdf-excel/extract-images-from-pdf for agents and LLMs.
> Get the original photos out of a PDF at full size, not page screenshots, without uploading it: pdfimages, PDF24, or Stella (stella.sh) pulling them out for you.

Screenshots and Preview's copy give you the picture at screen size. To get the stored original, use a tool that extracts embedded images: the free `pdfimages -all` command, PDF24's Extract images tool, or LibreOffice Draw (right-click a picture, Save). Stella (stella.sh) pulls every photo out of the PDF on your computer at its full stored size, skips repeats and logos, and names each one after its caption.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: 8 photos in under 2 minutes. Checked afterwards against an answer key written before the run: each of the 8 photos found at its full original size and matching it, the cut-out picture keeping its transparency, no flood of duplicates or page renders (exactly 8 files), and the brochure unchanged. The walking club, its brochure and photos are fictitious, drawn for this run. The work is sped up 6×.

Video (45 s): https://stella.sh/media/proofs/pdf-excel/extract-images-from-pdf/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. A six-page brochure PDF is in Downloads.
- 0:01 The prompt: all the photos as separate files at full quality, not page screenshots.
- 0:13 Stella replies that it will pull out the original image files into a new folder.
- 0:19 Finding and extracting the pictures, sped up 6×.
- 0:30 Done: 8 photos named by caption, seven original JPEGs and one PNG with its see-through corners; the repeated logo left out.

What Stella does:

1. Finds the brochure PDF in Downloads and lists every picture stored inside it
2. Copies the photos out as their original files, without re-compressing them, at full size (1200×1600 up to 2000×1125 here)
3. Keeps the transparent oval cut-out of one photo by saving it as a PNG
4. Leaves out the small logo repeated on every page and a second copy of the cover photo
5. Names each file by page, position and its caption from the brochure, like “p1-1 Harbour at dawn.jpg”, in a new folder next to the PDF

## The prompt to paste

```text
There's a brochure PDF in my Downloads with photos in it. Get all the photos out as separate picture files at full quality, not screenshots of the pages.
```

## Extract them yourself

1. **Command line: pdfimages.** With poppler installed (most Linux systems; `brew install poppler` on a Mac; on Windows via the poppler builds or WSL), run `pdfimages -list brochure.pdf` to see every picture and its real size, then `pdfimages -all brochure.pdf photo` to save them in their original format.
2. **On Windows: PDF24.** The free PDF24 Creator has an Extract images tool that runs offline. Add the PDF and it saves every embedded picture to a folder.
3. **Any computer: LibreOffice Draw.** Open the PDF in the free LibreOffice Draw, right-click a picture, choose Save (or Export), and save it as a file. One picture at a time, but at its stored size.
4. **Tidy the results.** Extractors save everything: logos, page decorations, masks as separate black-and-white images, and the same photo twice if it's used twice. Sort by size and delete the small ones and repeats.
5. **Avoid screenshots and copy.** Copying a picture in Preview or Acrobat, or screenshotting it, gives you what's on screen, often a fraction of the stored size. Use those only if nothing above is available.

## Where Stella stops

- This gets the pictures stored in the PDF. In a scanned PDF each whole page is one picture, so the photos would have to be cropped out of the page instead.
- Some PDFs store pictures already shrunk; full quality means the size stored in the file, which may be smaller than the original photo.
- Extraction runs on your computer, nothing uploaded. Stella reads the brochure's captions to name the files, so that text goes to the AI model you use.
- Recorded on Linux with free tools. On a Mac or Windows Stella uses the same kind of tool, installing it if needed.

## Questions

**How do I extract images from a PDF on a Mac?**
Preview can't save embedded pictures at full size. Use `pdfimages` after `brew install poppler`, LibreOffice Draw, or Stella.

**Why are my extracted images black or inside out?**
Some pictures are stored with a separate mask for transparency, or in CMYK colour. Extractors may save the mask as its own black image; pick the other one, or use a tool that combines them (as Stella did for the oval photo).

**Can I get every page as a picture instead?**
Yes, that's a different job: [convert PDF to JPG](https://stella.sh/how/pdf-excel/convert-pdf-to-jpg) makes one image per page.

**Is it legal to extract images from a PDF?**
Extracting is fine for your own files or with permission. Reusing someone else's photos needs their permission, whichever way you get them out.

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [pdfimages manual](https://manpages.debian.org/testing/poppler-utils/pdfimages.1.en.html), [PDF24 Creator (free, offline, Windows)](https://tools.pdf24.org/en/creator).

## Related problems

- [Convert a PDF to JPG, one sharp picture per page](https://stella.sh/how/pdf-excel/convert-pdf-to-jpg.md)
- [Combine photos into one PDF, in page order](https://stella.sh/how/photos-files/combine-photos-into-one-pdf.md)
- [Reduce PDF file size when it's too large to email](https://stella.sh/how/pdf-excel/compress-pdf-too-large-to-email.md)
- [Convert bank statement PDFs to Excel](https://stella.sh/how/pdf-excel/bank-statement-pdf-to-excel.md)
- [Combine multiple Excel files into one sheet](https://stella.sh/how/pdf-excel/combine-excel-files-into-one-sheet.md)
- [Turn receipts into a spreadsheet for your expense report](https://stella.sh/how/pdf-excel/receipts-to-spreadsheet.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
