LISTIMAGES(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

πŸ¦‹ LISTIMAGES πŸ’…

okay bestie, so this is listimages, a lil Perl script from the User Contributed Perl Documentation corner of the manual, section 1p. and what does it do? it saves copies of all the PDF JPG images to a directory. yes queen. that's the whole vibe. πŸ‘‘


✨ SYNOPSIS ✨

listimages [options] infile.pdf

Options:
  -v --verbose        print diagnostic messages
  -h --help           verbose help message
  -V --version        print CAM::PDF version

so like. you hand it one PDF, infile.pdf, you sprinkle on some options if you're feeling spicy, and off it goes. that's it. that's the whole thing. no cap. πŸ’–


🌸 OPTIONS 🌸

  • -v, --verbose β€” makes it chatty. prints diagnostic messages so you can see what it's doing behind the scenes. lowkey useful when you're like "girl what is happening" πŸ™ˆ
  • -h, --help β€” gives you a verbose help message. the full rundown. the whole lore. read it. πŸ“–
  • -V, --version β€” prints the CAM::PDF version. classic. every tool's gotta flex its version number, and honestly? iconic of it. πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea πŸ“: it searches the PDF for images and then lists them on STDOUT in one of these two formats, okay? pay attention bestie, there's two of them:

Image <n> page <p>, (w,h)=(<w>,<h>), ref <label> = object <objnum>, length <l>\n";
Image <n> page <p>, (w,h)=(<w>,<h>), inline

see how the first one is giving referenced object energy β€” it's got the ref <label>, the object <objnum>, and a length <l> all up in there ✨ β€” while the second one is just like inline, no reference, no drama, no object number, just vibes. πŸ¦‹

⚠️ heads up: yes, that \n"; at the end of the first format line is literally there in the original. do not come for me. copy it exactly if you're matching output. periodt. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

go check these out too, they're all in the same friend group:

  • CAM::PDF
  • crunchjpgs
  • extractallimages
  • extractjpgs
  • uninlinepdfimages

πŸŽ€ AUTHOR πŸŽ€

See CAM::PDF β€” yeah that's it, that's the author section. mysterious. elusive. we stan a private queen. 🫢


okay and for the lil sign-off: this whole page is riding with perl v5.36.0, dated 2022-12-08, filed under LISTIMAGES(1p). slay, bye bestie, go extract some images πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from