Adding metadata to a newly generated image via php?
I have a php script that creates a temporary watermark image for users who are not logged in. The original image contains IPTC information (metadata) that I would like to preserve, however when the watermark is applied and the imagejpeg is called, all the metadata is removed.
Any ideas on how I can maintain metadata or reapply the metadata after the imagejpeg call?
thank
+2
bhays
source
to share
1 answer
This is exactly what iptcparse and iptcembed are for.
+3
c_harm
source
to share