Image::...tScript(3)
π Image::...tScript(3) π
okay bestie, so this is a page from the User Contributed Perl Documentation collection, and it's genuinely a whole little corner of the ExifTool empire. pull up a chair, we're writing PostScript metadata today and it's lowkey iconic π
β¨ NAME β¨
Image::ExifTool::WritePostScript.pl β the file that writes PostScript meta information. yes, writes. not just reads. main character energy fr fr π
πΈ SYNOPSIS πΈ
ok so there's no command line here, no flags to type β this file doesn't get run by you directly. it gets autoloaded by Image::ExifTool::PostScript. that's it. that's the whole synopsis. she's mysterious like that π¦
This file is autoloaded by Image::ExifTool::PostScript.
π DESCRIPTION π
so what's actually in here? routines. routines to write meta information into PostScript documents. and not just one flavour of meta information β six whole forms of it, bestie, six. here's the lineup:
- PostScript comments (Adobe DSC specification)
- XMP information embedded in a document-level XMP stream
- EXIF information embedded in a Photoshop record
- IPTC information embedded in a PhotoShop record
- ICC_Profile information embedded in an ICCProfile record
- TIFF information embedded in DOS-style binary header
six ways to say "here's my metadata" into a PostScript file. slay π β¨
π₯ NOTES π₯
ok important stuff, pay attention:
right now, information is written only in the outer-level document. that's the vibe. outer level only, no cap.
β οΈ Photoshop will discard meta information in a PostScript document if it has to rasterize the image, and it will rasterize anything that doesn't contain the Photoshop-specific 'ImageData' tag. So don't expect Photoshop to read any meta information added to EPS images that it didn't create. π
translation bestie: don't come crying to me when Photoshop ghosts your metadata. if it's gotta rasterize, your info is gone, and it rasterizes literally anything without that 'ImageData' tag. so EPS images Photoshop didn't make itself? yeah. it's not reading your cute little annotations. periodt π
also, these two acronyms are about to confuse you because they're so similar and mean completely different things when we're talking PostScript documents:
DSC= Document Structuring ConventionsDCS= Desktop Color Separation
one letter apart. completely different lives. iykyk π
π REFERENCES π
check the references over in PostScript.pm, plus these bad boys:
<http://www.adobe.com/products/postscript/pdfs/PLRM.pdf><http://www-cdf.fnal.gov/offline/PostScript/PLRM2.pdf><http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/pdf_creation_apis_and_specs/pdfmarkReference.pdf>
go read them, they're giving β¨primary source materialβ¨
π ACKNOWLEDGEMENTS π
shoutout to Tim Kordick for his help testing the EPS writer π«Ά testing is unglamorous work and he ate. no crumbs. π
π AUTHOR π
Copyright 2003-2026, Phil Harvey (philharvey66 at gmail.com)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π SEE ALSO π
and that's the whole page bestie!! π this was perl v5.42.1, dated 2026-03-31, and the page is Image::...tScript(3). go forth and write PostScript metadata responsibly. mwah πβ¨π
π¦ where this page comes from
- fedora 43: perl-Image-ExifTool 13.50-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-Image-ExifTool 13.50-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms