IPTC tags not created - What is needed to create IPTC, if it does not exist?

Started by Sigurd, February 29, 2024, 06:45:24 AM

Previous topic - Next topic

Sigurd

I put the gps data into the images with the geotag option, works well. Then I would like to add geo data like city, counry, etc. with exiftool.

I am struggling creating IPTC-tags in order that other software like ExifToolGui or ACDSee can read it.  I compare what tags are written by other software. Settings the same tags still does not work. I add the missing IPTC:ApplicationRecordVersion, still no IPTC data. I tried the MGW tags, force a new IPTCDigest, still does not work.

My generated argfile has the follwing content:

-charset
Filename=UTF8
-charset
UTF8
-overwrite_original
-use
MWG
-IPTC:ApplicationRecordVersion=4
-IPTC:Country-PrimaryLocationCode=DE
-IPTC:Country-PrimaryLocationName=Germany
-IPTC:City=Hamburg
-IPTC:Sub-location=Neustadt
-IPTC:Province-State=
-XMP-iptcCore:Location=Neustadt
-XMP-iptcCore:CountryCode=DE
-XMP-photoshop:City=Hamburg
-XMP-photoshop:Country=Germany
-XMP-photoshop:State=
-IPTC:ApplicationRecordVersion=4
-IPTCDigest=old
-MWG:City=Hamburg
-MWG:Country=Germany
-MWG:Location=Neustadt
-MWG:State=
-usercomment=4B2A0222.CR3

I tried without extra IPTC, XMP tags, no matter, IPTC is never created.
Applying this file in verboose mode shows what is changed, unfortunately no IPTC group is created.

Writing IPTC:ApplicationRecordVersion
Writing IPTC:Country-PrimaryLocationCode
Writing IPTC:Country-PrimaryLocationName
Writing IPTC:City
Writing IPTC:Sub-location
Deleting IPTC:Province-State
Writing XMP-iptcCore:Location
Writing XMP-iptcCore:CountryCode
Writing XMP-photoshop:City
Writing XMP-photoshop:Country
Deleting XMP-photoshop:State
Writing IPTC:ApplicationRecordVersion
Writing Photoshop:IPTCDigest
+Writing IPTC:City if IPTC exists
+Writing XMP-iptcExt:LocationShownCity
+Writing XMP-photoshop:City
+Writing IPTC:Country-PrimaryLocationName if IPTC exists
+Writing XMP-iptcExt:LocationShownCountryName
+Writing XMP-photoshop:Country
+Writing IPTC:Sub-location if IPTC exists
+Writing XMP-iptcCore:Location
+Writing XMP-iptcExt:LocationShownSublocation
+Deleting IPTC:Province-State
+Deleting XMP-iptcExt:LocationShownProvinceState
+Deleting XMP-photoshop:State
Writing CanonRaw:UserComment if tag exists
Writing XMP-exif:UserComment if tag exists
Writing ExifIFD:UserComment
======== 4B2A0222.CR3
Rewriting 4B2A0222.CR3...
  FileType = CR3
  FileTypeExtension = CR3
  MIMEType = image/x-canon-cr3
  Editing tags in: ExifIFD IPTC MOV MakerNotes Movie Photoshop UUID-Canon XMP
  Creating tags in: ExifIFD IPTC MOV Movie Photoshop UUID-Canon XMP
  Rewriting Movie
  Rewriting UUID-Canon
  Rewriting IFD0
    [nothing changed in IFD0]
    [nothing changed in IFD0]
  Rewriting ExifIFD
    - ExifIFD:UserComment = ''
    + ExifIFD:UserComment = 'ASCII4B2A0222.CR3'
    (ExifIFD changed size)
  Rewriting MakerNoteCanon
  Rewriting CanonCameraSettings
    [nothing changed in CanonCameraSettings]
  Rewriting CanonFocalLength
    [nothing changed in CanonFocalLength]
  Rewriting CanonShotInfo
    [nothing changed in CanonShotInfo]
  Rewriting TimeInfo
    [nothing changed in TimeInfo]
  Rewriting CanonFileInfo
    [nothing changed in CanonFileInfo]
  Rewriting CropInfo
    [nothing changed in CropInfo]
  Rewriting CustomFunctions2
  Rewriting CanonCustom2
    [nothing changed in CustomFunctions2]
  Rewriting AspectInfo
    [nothing changed in AspectInfo]
  Rewriting ProcessingInfo
    [nothing changed in ProcessingInfo]
  Rewriting MeasuredColor
    [nothing changed in MeasuredColor]
  Rewriting AFMicroAdj
    [nothing changed in AFMicroAdj]
  Rewriting VignettingCorr2
    [nothing changed in VignettingCorr2]
  Rewriting LightingOpt
    [nothing changed in LightingOpt]
  Rewriting LensInfo
    [nothing changed in LensInfo]
  Rewriting AmbienceInfo
    [nothing changed in AmbienceInfo]
  Rewriting MultiExp
    [nothing changed in MultiExp]
  Rewriting HDRInfo
    [nothing changed in HDRInfo]
  Rewriting AFConfig
    [nothing changed in AFConfig]
  Rewriting RawBurstModeRoll
    [nothing changed in RawBurstModeRoll]
    [nothing changed in MakerNotes]
    [nothing changed in MakerNoteCanon]
  Rewriting GPS
    [nothing changed in GPS]
    [nothing changed in GPS]
    (UUID-Canon changed size)
  Rewriting MovieHeader
    [nothing changed in MovieHeader]
  Rewriting Track
  Rewriting TrackHeader
    [nothing changed in TrackHeader]
  Rewriting Media
  Rewriting MediaHeader
    [nothing changed in MediaHeader]
  Rewriting MediaInfo
  Rewriting DataInfo
  Rewriting DataRef
    [nothing changed in DataRef]
    [nothing changed in DataInfo]
  Rewriting SampleTable
    [nothing changed in SampleTable]
    [nothing changed in MediaInfo]
    [nothing changed in Media]
    [nothing changed in Track]
  Rewriting Track
  Rewriting TrackHeader
    [nothing changed in TrackHeader]
  Rewriting Media
  Rewriting MediaHeader
    [nothing changed in MediaHeader]
  Rewriting MediaInfo
  Rewriting DataInfo
  Rewriting DataRef
    [nothing changed in DataRef]
    [nothing changed in DataInfo]
  Rewriting SampleTable
    [nothing changed in SampleTable]
    [nothing changed in MediaInfo]
    [nothing changed in Media]
    [nothing changed in Track]
  Rewriting Track
  Rewriting TrackHeader
    [nothing changed in TrackHeader]
  Rewriting Media
  Rewriting MediaHeader
    [nothing changed in MediaHeader]
  Rewriting MediaInfo
  Rewriting DataInfo
  Rewriting DataRef
    [nothing changed in DataRef]
    [nothing changed in DataInfo]
  Rewriting SampleTable
    [nothing changed in SampleTable]
    [nothing changed in MediaInfo]
    [nothing changed in Media]
    [nothing changed in Track]
  Rewriting Track
  Rewriting TrackHeader
    [nothing changed in TrackHeader]
  Rewriting Media
  Rewriting MediaHeader
    [nothing changed in MediaHeader]
  Rewriting MediaInfo
  Rewriting DataInfo
  Rewriting DataRef
    [nothing changed in DataRef]
    [nothing changed in DataInfo]
  Rewriting SampleTable
    [nothing changed in SampleTable]
    [nothing changed in MediaInfo]
    [nothing changed in Media]
    [nothing changed in Track]
    (Movie changed size)
  Rewriting XMP
    + XMP-photoshop:City = 'Hamburg'
    + XMP-photoshop:Country = 'Germany'
    + XMP-iptcCore:CountryCode = 'DE'
    + XMP-iptcCore:Location = 'Neustadt'
    + XMP-iptcExt:LocationShownCity = 'Hamburg'
    + XMP-iptcExt:LocationShownCountryName = 'Germany'
    + XMP-iptcExt:LocationShownSublocation = 'Neustadt'
    + XMP-exif:UserComment = '4B2A0222.CR3'
    (XMP changed size)
    1 image files updated

exiftool -G1 -a -s -IPTC:all  4B2A0222.CR3 confirms, that IPTC is not present.

I see the out "+Writing IPTC:City if IPTC exists". What is needed to create IPTC, if it does not exist?

I appreciate any help,
Sigurd

PH Edit: Put arguments and output in code block

wywh


Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

ACDSee should be able to see the XMP tags you are writing.  IIRC, there is a RightClick menu option to reload metadata, as it won't automatically update the data.  It has been a few years since I ran a trial on ACDSee though.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Sigurd

Thanks for the answers, I was afraid the solution is simple and the solution is simple - reading helps