given an image file path, I want to get its content - than add metadata to that content (either EXIF, IPTC, XMP etc.) and then display that image's content, with that metadata included (probably in base64 format), in an HTML tag without saving the file.
why without saving the file on server? the action I'm trying to perform is for a case a user saves the image file to his computer, for copyright purposes - I want his IP and the my site's URL to be stored in the metadata of the image he downloaded. there will be thousands of users viewing the image in a minute so I cannot create temporary copies of this image on server.
I can generate either a JPEG or PNG format image - any format needed in order to make it work.
I currently know how to store IPTC meta data in a JPEG image using PHP's "iptcembed" but of course that stores (saves) the file.