Write to IPTC Core Data of Image Files?

Sannyasin Brahmanathaswami brahma at hindu.org
Thu Mar 10 12:38:20 EST 2016


Mark, thanks for the lead.
A bit out of my depth but It
will keep the little gray cells green
to get this working.



On March 9, 2016 at 10:24:47 PM, Mark Waddingham (mark at livecode.com<mailto:mark at livecode.com>) wrote:

There's a command line tool exiv2 which is cross-platform which would do
the job in the first instance. The actual data for IPTC (and XMP) are
'applications of XML' (meaning they are just XML!) so you could
construct the XML in LiveCode then use shell() to call exiv2 to embed it
the image file (see http://exiv2.org and
http://www.exiv2.org/manpage.html).

It would be more than possible to write a LiveCode Script library which
extracts and embeds such things into image files - helpfully the process
to do so has already been mapped out by the exiv2 project (e.g.
http://dev.exiv2.org/projects/exiv2/wiki/The_Metadata_in_JPEG_files) -
although that will require a fair bit of 'bit bashing' to do.

Warmest Regards,

Mark.


More information about the use-livecode mailing list