Henk, at
http://support.adobe.com/devsup/devsup.nsf/docs/51844.htm

it describes a typical xmp packet as:

<?xpacket begin='x' id='W5M0MpCehiHzreSzNTczkc9d'?>
... 700 bytes of XML data text ...
... 500 bytes of XML whitespace as padding ...
<?xpacket end='w'?>

so if I understand this right, something like

 put URL ("binfile:" & yourJpeg) into tData
 put offset("<?xpacket begin", tData) into startChar
--- if startChar = 0 then presumably there is no xmp packet....
 put offset("<?xpacket end",tData) -1 into endChar
put char startChar to endChar of tData into tXML
get offset(">",tXML)
delete char 1 to it of tXML

would leave the actual XML data in the variable tXML.

A possible starting point, anyway.

Best,

Mark

On 27 Sep 2006, at 10:14, Henk van der Velden wrote:

Good day all,

Can anyone help me with editing XMP metadata in image files (JPEG)?

I've searched the archives and I've found some messages about EXIF data and IPTC metadata. But it looks like no one has done XMP reading / editing yet. It wouldn't perhaps be too difficult, since XMP data is 'just' an XML tree put somewhere into the JPEG binary data. But I have no knowledge of binary data, so I can't figure out how to add these metadata to a (JPEG) file.

Another option might be Image Magick. If an external could be built around the Image Magick libraries, that would provide another way to read and edit XMP data.

I need this facility for a new application we are going to build for a couple of local cultural institutions. We need to describe lots of historical photographs, and it looks like the best way to store these descriptions is as metadata inside the files. These images are also to be used in educational applications, where children can read - and eventually edit - the metadata.

There will be a budget to develop this kind of thing. So what I would like to know is:
- who feels able to develop this?
- how would you build this kind of functionality
- an estimation of the costs

You can contact me off list.

Kind regards,

Henk
--------------------------
Henk v.d. Velden
iGlow Media
Magda Janssenslaan 44
3584 GR  UTRECHT

0031 (0)6 16 024 337
www.iglow-media.nl


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to