PS2EPSI(1)
π PS2EPSI β ok bestie, let's talk β¨
so this whole page is from the Ghostscript Tools corner of the manual, and it's all about a lil script called ps2epsi. one job. iconic behavior only. π
πΈ NAME πΈ
ps2epsi β generates conforming Encapsulated PostScript. that's it, that's the whole personality. π
β¨ SYNOPSIS β¨
ps2epsi infile.ps [ outfile.epsi ] (Unix)
ps2epsi infile.ps [ outfile.epi ] (DOS)
like. it takes your file, it gives you a file. two flavors depending on your whole OS situation. π¦
π«Ά DESCRIPTION π«Ά
okay so ps2epsi uses gs(1) to process a PostScript(tm) file and generate, as output, a brand new file that conforms to Adobe's Encapsulated PostScript Interchange (EPSI) format. no cap. π«
and what even is EPSI, you ask? it's a special form of encapsulated PostScript (EPS) that adds β right at the beginning of the file, in the form of PostScript comments β a bitmapped version of the final displayed page. so it's giving "here's a sneak peek, glued to the front of your actual file." πΈ
programs that understand EPSI (usually word processors or DTP programs) can use this bitmap to give a preview version on screen of the PostScript. the displayed quality is often not very good (e.g., low resolution, no colours π), but the final printed version uses the real PostScript, and thus has the normal PostScript quality. so it's lowkey a glow-up situation: ugly preview, gorgeous print. periodt. π
π» USAGE π»
on Unix systems, invoke ps2epsi like this:
ps2epsi infile.ps [ outfile.epsi ]
where infile.ps is the input file and outfile.epsi is the resulting EPSI file. if the output filename is omitted, it is generated from the input filename. when a standard extension (.ps, .cps, .eps or .epsf) is used, it is replaced with the output extension .epsi. she just knows what you meant, bestie. π§
on DOS systems the command is:
ps2epsi infile.ps outfile.epi
where infile.ps is the original PostScript file, and outfile.epi is the name of the output file. (yes it's .epi here, not .epsi. we don't make the rules. π)
π¬ LIMITATIONS π¬
not every PostScript file can be encapsulated successfully, because there are restrictions on what PostScript constructs a correct encapsulated file may contain. it's giving "not everyone gets into the club." π
ps2epsi does a little extra work to try to help encapsulation, and it automatically calculates the bounding box required for all encapsulated PostScript files, so most of the time it does a pretty good job. there are certain to be cases, however, where the encapsulation does not work because of the content of the original PostScript file. so likeβ¦ she tries her best, but the vibes of your original file can absolutely ruin everything. π«
π₯οΈ COMPATIBILITY π₯οΈ
the Framemaker DTP system is one application which understands EPSI files, and ps2epsi has been tested on a number of PostScript diagrams from a variety of sources, using Framemaker 3.0 on a Sun workstation. β¨
Framemaker on other platforms should be able to use these files, although I have not been able to test this. (ngl, a very honest moment from the author. we respect it. π«Ά)
π FILES π
ps2epsiβ Unix shell scriptps2epsi.batβ DOS batch fileps2epsi.psβ the Ghostscript program which does the work
the last one is the main character, fr fr. the other two are just her outfit changes. π
π SEE ALSO π
π VERSION π
this document was last revised for Ghostscript version 10.04.0. however, the content may be obsolete, or inconsistent with ps2epsi.txt. so like, read with love and a tiny bit of suspicion. π
π AUTHOR π
George Cameron
lowkey reminder: the preview bitmap might be crunchy and colourless but the print is the real deal. don't panic. π
and that's the whole page, bestie β you ate this. go encapsulate something. π¦β¨
Ghostscript version 10.04.0 Β· 18 Sept 2024 Β· mwah, catch you on the next manpage π
π¦ where this page comes from
- alpine 3.22: ghostscript-doc 10.05.1-r0 Β· AGPL-3.0-or-later
- alpine 3.23: ghostscript-doc 10.08.0-r0 Β· AGPL-3.0-or-later
- alpine 3.24: ghostscript-doc 10.08.0-r0 Β· AGPL-3.0-or-later
- arch rolling: ghostscript 10.08.0-1 Β· AGPL-3.0-or-later
- debian trixie: ghostscript 10.05.1~dfsg-1+deb13u1 Β· LicenseRef-public-domain
- debian trixie: ghostscript 10.05.1~dfsg-1+deb13u3 Β· LicenseRef-public-domain
- fedora 43: ghostscript 10.05.1-5.fc43 Β· AGPL-3.0-or-later
- fedora 43: ghostscript 10.05.1-5.fc43 Β· AGPL-3.0-or-later
- fedora 43: ghostscript 10.05.1-6.fc43
- fedora 43: ghostscript 10.05.1-6.fc43
- fedora 43: ghostscript 10.05.1-7.fc43 Β· AGPL-3.0-or-later
- fedora 43: ghostscript 10.05.1-7.fc43 Β· AGPL-3.0-or-later
- fedora 44: ghostscript 10.06.0-2.fc44 Β· AGPL-3.0-or-later
- fedora 44: ghostscript 10.06.0-2.fc44 Β· AGPL-3.0-or-later
- fedora 44: ghostscript 10.06.0-3.fc44 Β· AGPL-3.0-or-later
- nixpkgs unstable: ghostscript 10.08.0
- nixpkgs unstable: ghostscript-with-X 10.08.0
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 Β· AGPL-3.0-only
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 Β· AGPL-3.0-only
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 Β· AGPL-3.0-only
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 Β· AGPL-3.0-only
- ubuntu questing: ghostscript 10.05.0dfsg1-0ubuntu4
- ubuntu resolute: ghostscript 10.06.0~dfsg-3ubuntu1 Β· LicenseRef-public-domain
- ubuntu resolute: ghostscript 10.06.0~dfsg-3ubuntu1.1
- ubuntu resolute: ghostscript 10.06.0~dfsg-3ubuntu1.2 Β· LicenseRef-public-domain
- ubuntu stonking: ghostscript 10.07.1~dfsg-1ubuntu2 Β· LicenseRef-public-domain
- ubuntu stonking: ghostscript 10.07.1~dfsg-1ubuntu2.1 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms