CR2 file Keywords

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

CR2 file Keywords

Post by Bonzo »

I have just added some tags/keywords to a CR2 file using Microsoft Pro Photo tools and I belive some other RAW tagging software uses the same system.

When I use

Code: Select all

identify -verbose IMG_0639.CR2
I get quite a lot of information but not the tags/keywords.

It looks like in this case these details are in an XML section at the end of the photo. Is this something you would consider adding to IM ?

First few lines:
Created Optional Item Data Canon RAW Codec 1.5.0.47<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax ... escription rdf:about="uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b" xmlns:dc="http://purl.org/dc/elements/1.1/"><dc:d ... n><rdf:Alt xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:li xml:lang="x-default">Photo of a swan with a signet</rdf:li></rdf:Alt>
</dc:description></rdf:Description><rdf:Description rdf:about="uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b" xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"><ph ... escription rdf:about="uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b" xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xm ... escription rdf:about="uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b" xmlns:exif="http://ns.adobe.com/exif/1.0/"><exif:GPSLatitude>
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: CR2 file Keywords

Post by snibgo »

As for the other topic, this might do the trick:

Code: Select all

convert in.jpg out.xmp
snibgo's IM pages: im.snibgo.com
Post Reply