PSRIP(1)

πŸ’– PSRIP πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation set β€” yes, that's the manual name, we're not making it up β€” and it's about a lil script called psrip that yoinks images out of postscript files. it's giving extraction. it's giving "I found the pictures hiding in your .ps". slay.


✨ NAME ✨

psrip β€” extracts images from postscript-files πŸ¦‹

like literally that's the whole job. it pulls the pics out.


🌸 SYNOPSIS 🌸

psrip [-d dir] psfile(s)

extract images in psfile(s) into the current directory, or into dir if you gave one. that's it, that's the vibe. πŸ’…


πŸŽ€ Examples πŸŽ€

  • psrip foil.ps Extract images from foil.ps into current directory. no flags, no fuss, just vibes. ✨
  • psrip -d images foil1.ps foil2.ps TeX/*.ps Extract images of these ps-files into directory images. look at you globbing like a main character. πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

ngl the whole thing is kind of iconic in how simple it is. the script saves the lines between %%BeginDocument: name and %%EndDocument to a new file named dir/name. that's the entire trick. it reads the postscript, finds those marker lines, and copies everything in between out into a fresh file. periodt. πŸ’«


😭 BUGS 😭

ok so here's the thing, bestie, and I need you to actually listen: if there is no BoundingBox specified in the extracted image, you have to insert it by hand. no cap. the script will not do it for you. πŸ’€

e.g. for DIN-a4 size:

 %%BoundingBox: 0 0 596 842

so yeah, that's on you. πŸ™ˆ

fr fr check your extracted image before you go printing anything, or you're gonna have a bad time.

🫢 AUTHOR 🫢

Christian Lackas <delta@clackas.de>, 10 December 1999. ✨

This tool is dedicated to Nikolay 'Snake' Sturm. πŸπŸ’– (that's so sweet actually, I'm not crying, you're crying 😭)

Thanks to Rolf Niepraschk for his help in publishing an bug reporting.


πŸ‘‘ LICENSE πŸ‘‘

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.


and that's the whole page, bestie!! this was the 15/Dec/1999 edition, built against perl 5.005, patch 03, and honestly? ahead of its time. go extract some images. mwah. πŸ’‹πŸŽ€βœ¨

πŸ“¦ where this page comes from