---
name: "extractjpgs"
section: "1p"
platform: "linux"
package: "libcam-pdf-perl"
version: "1.60-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/extractjpgs"
---

# extractjpgs(1p)

Save copies of all PDF JPG images to a directory

## NAME

extractjpgs - Save copies of all PDF JPG images to a directory

## SYNOPSIS

```
 extractjpgs [options] infile.pdf outdirectory
 Options:
   -S --skip=imnum     don't output the specified images (can be used multiple times)
   -v --verbose        print diagnostic messages
   -h --help           verbose help message
   -V --version        print CAM::PDF version
```

`"imnum"` is a comma-separated list of integers indicating the images in order that they appear in the PDF.  Use *listimages* to retrieve the image numbers.

## DESCRIPTION

Requires the ImageMagick **convert** program to be available

Searches the PDF for JPG images and saves them as individual files in the specified directory.  The files are named `"<imnum>.jpg"`.

## SEE ALSO

CAM::PDF

*crunchjpgs*

*listimages*

*extractallimages*

*uninlinepdfimages*

## AUTHOR

See CAM::PDF
