Our html5 web app lets users upload photos. With javascript in the browser, we currently resize the image, then serialize it with canvas.toDataUrl(). Now we would like to embed some xmp metadata at the client.
Are there existing libraries that will help me do this? There's this for exif, but nothing for XMP, it appears.
If not, is it sane or reasonable to scan the byte array and insert the app1 section with the xmp packet? I have the byte array thanks to this. The adobe docs here describe the construction and embedding of xmp in jpeg, but this is a frightening low level operation for a web front end guy.