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