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.psExtract images fromfoil.psinto current directory. no flags, no fuss, just vibes. β¨psrip -d images foil1.ps foil2.ps TeX/*.psExtract images of these ps-files into directoryimages. 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
- debian bookworm: psrip 1.3-10 Β· GPL-2.0-or-later
- debian trixie: psrip 1.3-10 Β· GPL-2.0-or-later
- ubuntu jammy: psrip 1.3-10 Β· GPL-2.0-or-later
- ubuntu noble: psrip 1.3-10 Β· GPL-2.0-or-later
- ubuntu resolute: psrip 1.3-12 Β· GPL-2.0-or-later
- ubuntu stonking: psrip 1.3-12 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms