How can I read XMP data from a JPG with PHP?
XMP data is literally embedded into the image file so can extract it with PHP’s string-functions from the image file itself. The following demonstrates this procedure (I’m using SimpleXML but every other XML API or even simple and clever string parsing may give you equal results): $content = file_get_contents($image); $xmp_data_start = strpos($content, ‘<x:xmpmeta’); $xmp_data_end = … Read more