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:

  1. PostScript comments (Adobe DSC specification)
  2. XMP information embedded in a document-level XMP stream
  3. EXIF information embedded in a Photoshop record
  4. IPTC information embedded in a PhotoShop record
  5. ICC_Profile information embedded in an ICCProfile record
  6. 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 Conventions
  • DCS = Desktop Color Separation

one letter apart. completely different lives. iykyk 🌈


πŸŽ€ REFERENCES πŸŽ€

check the references over in PostScript.pm, plus these bad boys:

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