EXTRACTALLIMAGES(1p)

πŸ“¦
version 1.60 Β· 2 versions
  • 1.60 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.60 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ EXTRACTALLIMAGES(1p) ✨

okay bestie so extractallimages is literally the moment where you grab every single image out of a PDF and save copies of them into a directory πŸ’– like a lil photoshoot but for PDFs. she's a perl script, she's user-contributed, she's iconic.


🌸 SYNOPSIS 🌸

extractallimages [options] infile.pdf outdirectory

Options:
  -O --only=imnum     only output the specified images (can be used multiple times)
  -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

so imnum is a comma-separated list of integers, and those integers are the images in the order that they appear in the PDF πŸ”’ like the order is the whole point, no cap. and if you don't know what numbers your images even are, go run listimages first to retrieve the image numbers πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

heads up: this one requires the ImageMagick convert program to be available. like actually available on your system. no convert, no vibes. πŸ’€

what she does: she searches the PDF for images and saves them as individual files in the directory you specified πŸ“βœ¨

the files get named like this:

  • <imnum>.jpg
  • <imnum>.gif

that's it. that's the whole girlboss move. πŸ’…


🌈 SEE ALSO 🌈

  • CAM::PDF
  • crunchjpgs
  • listimages
  • extractjpgs
  • uninlinepdfimages

like a whole lil friend group of perl PDF tools, go say hi 🫢


πŸ‘‘ AUTHOR πŸ‘‘

See CAM::PDF πŸ’œ


and that's the whole page, bestie! this one's from the User Contributed Perl Documentation, living under perl v5.36.0, dated 2022-12-08 β€” so go forth, extract those images, and slay πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from