Works for NEF files, but not for JPGs...

Started by Archive, May 12, 2010, 08:53:49 AM

Previous topic - Next topic

Archive

[Originally posted by mrmnz on 2005-06-25 05:01:49-07]

Hi,

I am using an external text file to put many tags into a directory full of images.  The images are from a Nikon D2X Digital Camera and are both NEF files and JPG files straight out of the camera.

My text file is simply called "INFO.TXT" and contains stuff like:

-Title="Mr. and Mrs. Smith"

-Description="Sunset"

etc...

In all, I am trying to put in values for the following:

-Title,-Description,-Location,-City,-State,-Country,-Keywords,-Artist,

-Credit,-By-lineTitle,-CreatorContactInfoCiEmailWork,-CreatorContactInfoCiUrlWork,

-CreatorContactInfoCiAdrCity,-CreatorContactInfoCiAdrCtry,-Copyright,-Marked,

-WebStatement,-UsageTerms,-Source

When I run the command (OSX 10.4, ExifTool 5.35, Photoshop CS2):

  exiftool -@ INFO.TXT DSC*.*

It appears to work perfectly.  I can open the NEF files in Photoshop CS2 and all the Information has made it to the "File Info" pages.  When I open the JPG files in CS2, only some of the information is there.  These make it:

-By-lineTitle,-CreatorContactInfoCiAdrCity,-CreatorContactInfoCiAdrCtry,

-CreatorContactInfoCiEmailWork,-CreatorContactInfoCiUrlWork,-Location,-City,

-UsageTerms,-Source

All the rest are missing.  When I check it using "exiftool -g DSC_0001.JPG" in a Terminal, all of the values are there.

This ONLY happens with the JPGs, the NEFs work perfectly.

Are there any known problems with what I have described?

Thanks,

Matt

Archive

[Originally posted by exiftool on 2005-06-25 14:29:10-07]

Hi Matt,

I have heard reports that CS2 is very picky about the XMP formatting, and in fact that it doesn't adhere to the XMP specification.  It is possible that this is the problem.

It would help if you could provide 2 (small) sample files (email them to me, my address is in the README file of the ExifTool distribution):  1) The JPG as modified by ExifTool as you described, and 2) The same file but with the missing information entered and saved using CS2.

With these samples I may be able to figure out what is going on.

Unfortunately I don't have a copy of CS2 myself for testing.

Archive

[Originally posted by exiftool on 2005-06-27 13:19:38-07]

Thanks for the samples.  There doesn't appear to be a problem with the XMP format with CS2 as I had feared.  (*whew*)

Instead, it is simply that Photoshop expects the information in different locations than you have written.  Below is a list of the information you want to write.  For each tag, I have listed the tags you are writing with exiftool, and the tags that were written by Photoshop.

Code:
-Title

    -XMP-dc:Title [exiftool]
    -IPTC:ObjectName [ps]

-Description

    -XMP-dc:Description [exiftool]
    -IFD0:ImageDescription [ps]
    -IPTC:Caption-Abstract [ps]

-Location

    -XMP-iptcCore:Location [exiftool/ps]

-City

    -XMP-Photoshop:City [exiftool/ps]

-State

    ? (no state name in your samples so I couldn't search for this one)

-Country

    -XMP-Photoshop:Country [exiftool]
    -IPTC:Country-PrimaryLocationName [ps]

-Keywords

    -IPTC:Keywords [exiftool]
    -XMP-dc:Subject [ps]

-Artist

    -IFD0:Artist [exiftool]
    -IPTC:By-line [ps]
    -XMP-dc:Creator [ps]
   
-Credit

    -IPTC:Credit [exiftool]
    -XMP-Photoshop:Credit [ps]

-By-lineTitle

    -IPTC:By-lineTitle [exiftool/ps]

-CreatorContactInfoCiEmailWork
-CreatorContactInfoCiUrlWork
-CreatorContactInfoCiAdrCity
-CreatorContactInfoCiAdrCtry

    -XMP-iptcCore:* [exiftool/ps]

-Copyright

    -IFD0:Copyright [exiftool]
    -IPTC:CopyrightNotice [ps]
    -XMP-dc:Rights [ps]
   
-Marked

    -XMP-xapRights [exiftool/ps]

-WebStatement

    -XMP-xapRights:WebStatement [exiftool]
    -Photoshop:URL [ps]

-UsageTerms

    -XMP:xmpRights [exiftool/ps]

-Source

    -IPTC:Source [exiftool/ps]
    -XMP-photoshop:Source [ps]

As you can see, Photoshop is expecting some information in different locations than where you were writing with exiftool.  You will have to decide what is best for you, but for maximum compatibility you may want to write the information to all the locations listed above.

Archive

[Originally posted by exiftool on 2005-06-28 11:55:48-07]

Sorry, I made a few typos in my previous response.  Also, I should have remembered that exiftool writes using the "xmp..." instead of the older "xap..." namespace prefixes.  Here is the corrected list:

Code:
-Title

    -XMP-dc:Title [exiftool]
    -IPTC:ObjectName [ps]

-Description

    -XMP-dc:Description [exiftool]
    -IFD0:ImageDescription [ps]
    -IPTC:Caption-Abstract [ps]

-Location

    -XMP-iptcCore:Location [exiftool/ps]

-City

    -XMP-Photoshop:City [exiftool/ps]

-State

    ? (no state name in your samples so I couldn't search for this one)

-Country

    -XMP-Photoshop:Country [exiftool]
    -IPTC:Country-PrimaryLocationName [ps]

-Keywords

    -IPTC:Keywords [exiftool]
    -XMP-dc:Subject [ps]

-Artist

    -IFD0:Artist [exiftool]
    -IPTC:By-line [ps]
    -XMP-dc:Creator [ps]
   
-Credit

    -IPTC:Credit [exiftool]
    -XMP-Photoshop:Credit [ps]

-By-lineTitle

    -IPTC:By-lineTitle [exiftool/ps]

-CreatorContactInfoCiEmailWork
-CreatorContactInfoCiUrlWork
-CreatorContactInfoCiAdrCity
-CreatorContactInfoCiAdrCtry

    -XMP-iptcCore:* [exiftool/ps]

-Copyright

    -IFD0:Copyright [exiftool]
    -IPTC:CopyrightNotice [ps]
    -XMP-dc:Rights [ps]
   
-Marked

    -XMP-xmpRights:Marked [exiftool/ps]

-WebStatement

    -XMP-xmpRights:WebStatement [exiftool]
    -Photoshop:URL [ps]

-UsageTerms

    -XMP-xmpRights:UsageTerms [exiftool/ps]

-Source

    -IPTC:Source [exiftool/ps]
    -XMP-photoshop:Source [ps]