Search code examples
phpmetadataiptc

Appending metadata to a newly created image via php?


I have php script that creates a temporary watermark image for users that are not logged in. The original image contains IPTC (metadata) information that I would like to retain, however, when the watermark is applied and imagejpeg is called, all metadata is removed.

Any ideas how I can maintain the metadata or re-apply metadata after imagejpeg gets called?

Thanks


Solution

  • This is just what the iptcparse and iptcembed functions are for.