• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: exiftools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exiftools


  • Subject: Re: exiftools
  • From: "Craig D. Sutherland" <email@hidden>
  • Date: Thu, 01 Mar 2012 09:10:30 -0600


On Mar 1, 2012, at 8:54 AM, Eric Saunders wrote:


Roger and Craig
,
On Wed, Feb 29, 2012 at 10:29 PM, Roger Howard <email@hidden> wrote:
>
>
>Sure thing.
>
>First things first - or rather let's start from the end... *where* do you want this tag stored? Is it meant to be stored in XMP? Or a custom IPTC tag? Custom PNG tag? This isn't so >much an exiftool question as a general one - where do you want this data stored? In what types of files?

Sorry. I knew to include this and was so frustrated yesterday that I went kind of blank. 
I want to store the information in Tiff and Jpeg files. In XMP. Custom namespace I think. Here are the tags in a tiff file that I got the file info for.

 <rdf:Description rdf:about=""
            xmlns:xwnv="http://ns.xinet.com/ns/xinetschema#">
         <xwnv:Original_Filename>W_S12_ROSY_Vera</xwnv:Original_Filename>
         <xwnv:Pattern>Rosy Posies</xwnv:Pattern>
         <xwnv:SKU>10096121-V1</xwnv:SKU>
         <xwnv:Style>Vera</xwnv:Style>
      </rdf:Description>


>Second, what type of field? Just a simple, single text value? XMP provides a lot of awesomeness like translation support, multivalue fields (bags), etc.

Text 
 
>Ok, all that out of the way - have you looked at:
>
>http://owl.phy.queensu.ca/~phil/exiftool/config.html
>
>That's a pretty exhaustive sample of just about everything you could do with a custom tag configuration file... yours will be much, much smaller, and simpler, as this shows pretty >mcuh everything possible.

And even that confused me.
 
I'm not a Perl guy myself, but it's still pretty straightforward - the complicate stuff isn't because it's Perl, it's because embedded metadata is complicated - believe me when I say exiftool makes this about as easy as it could be without dumbing it down.

Recommended reading? I welcome any chance to improve my knowledge...
 
In essence, you're going to create a stripped down version of that file; then store it in your home directory (~) as ".ExifTool_config", or simply load it when you run exiftool using the -config option.

Ok, all that said, here's the simple example I can come up with:

#------------------------------------------------------------------------------
%Image::ExifTool::UserDefined = (
   'Image::ExifTool::XMP::xmp' => {
      CustomFieldName => { },
   }
);
#------------------------------------------------------------------------------

OK. I think the part about the xinet is the custom namespace. How do I handle that? I did look at the exiftool config documentation, but I dont understand metadata format information. I have an assignment to replace a script that was run only and is no longer working. I can read and write tags with exiftool. The part I am hung up on is writing to the file with the above custom tags. I think I almost get it, but am hanging on the edge. Any information or recommendation as to where to go to get information would be awesome. Just remember that I dont know much (any) to  start with.

Thank you both for your help,

Eric
>snip<

Eric,

Using Roger's most excellent example, once the tag CustomFieldName has been created in the file: exiftool -xml:customfieldname='My metadata entry' PosixFilePath

To check that the data is in the file: exiftool -xml:customfieldname

I remember thinking 'Huh.. simple. Sure easier than I made it'.

Craig Sutherland
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: exiftools (From: Eric Saunders <email@hidden>)

  • Prev by Date: Re: exiftools
  • Next by Date: Re: Wanted: A Text View for AppleScript
  • Previous by thread: Re: exiftools
  • Next by thread: Re: Gatekeeper
  • Index(es):
    • Date
    • Thread