Main Menu

set new Tags to photo

Started by christian.schumacher, October 09, 2013, 09:22:54 AM

Previous topic - Next topic

christian.schumacher

Hello,

i have tryed to add tag to my photos, without sucsess.
exiftool TAG+='halloworld' photo.jpg

i got an error:

How can i simply add new tags to my photos?
I use windows cmd.

Chris

christian.schumacher

Hello,
now i can add Keyword by this:
exiftool.exe -keywords+="Schlagwort" photo.jpg

Result:Warning: Malformed UTF-8 character(s) - t1.jpg
    1 image files updated


But there is no keyword in the file


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 ($).

christian.schumacher

if i use the Exiftool GUI  the result is:
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 9.38'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>

<rdf:Description rdf:about=''
  xmlns:dc='http://purl.org/dc/elements/1.1/'>
  <dc:subject>
   <rdf:Bag>
    <rdf:li>schlagwort</rdf:li>
   </rdf:Bag>
  </dc:subject>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>


if i use the exiftool cmd the result is:
schlagwort

how can i modify my input to get the same result?

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 ($).

christian.schumacher

Hello Phil

i have red the faq many times but im not sucessfully with adding Keywords in xmp Style with the command line.

I tryed the commands of the faq Point 3a,3b,3c

exiftool -a -G1 -s t1.jpg
[ExifTool]      ExifToolVersion                 : 9.38
[System]        FileName                        : t1.jpg
[System]        Directory                       : .
[System]        FileSize                        : 152 kB
[System]        FileModifyDate                  : 2013:10:09 16:00:49+02:00
[System]        FileAccessDate                  : 2013:10:09 16:00:49+02:00
[System]        FileCreateDate                  : 2013:10:09 16:00:49+02:00
[System]        FilePermissions                 : rw-rw-rw-
[File]          FileType                        : JPEG
[File]          MIMEType                        : image/jpeg
[File]          CurrentIPTCDigest               : b4e5c384c4f662bc5d81429a42ba5253
[File]          ImageWidth                      : 898
[File]          ImageHeight                     : 1024
[File]          EncodingProcess                 : Baseline DCT, Huffman coding
[File]          BitsPerSample                   : 8
[File]          ColorComponents                 : 3
[File]          YCbCrSubSampling                : YCbCr4:2:0 (2 2)
[JFIF]          JFIFVersion                     : 1.02
[JFIF]          ResolutionUnit                  : None
[JFIF]          XResolution                     : 100
[JFIF]          YResolution                     : 100
[IPTC]          Keywords                        : , , , , , , , 11111111, helloworld
[IPTC]          ApplicationRecordVersion        : 4
[XMP-x]         XMPToolkit                      : Image::ExifTool 9.38
[XMP-dc]        Subject                         : schlagwort, Schlagwort, Musterwort3
[Ducky]         Quality                         : 44%
[ICC-header]    ProfileCMMType                  : Lino
[ICC-header]    ProfileVersion                  : 2.1.0
[ICC-header]    ProfileClass                    : Display Device Profile
[ICC-header]    ColorSpaceData                  : RGB
[ICC-header]    ProfileConnectionSpace          : XYZ
[ICC-header]    ProfileDateTime                 : 1998:02:09 06:49:00
[ICC-header]    ProfileFileSignature            : acsp
[ICC-header]    PrimaryPlatform                 : Microsoft Corporation
[ICC-header]    CMMFlags                        : Not Embedded, Independent
[ICC-header]    DeviceManufacturer              : IEC
[ICC-header]    DeviceModel                     : sRGB
[ICC-header]    DeviceAttributes                : Reflective, Glossy, Positive, Color
[ICC-header]    RenderingIntent                 : Perceptual
[ICC-header]    ConnectionSpaceIlluminant       : 0.9642 1 0.82491
[ICC-header]    ProfileCreator                  : HP
[ICC-header]    ProfileID                       : 0
[ICC_Profile]   ProfileCopyright                : Copyright (c) 1998 Hewlett-Packard Company
[ICC_Profile]   ProfileDescription              : sRGB IEC61966-2.1
[ICC_Profile]   MediaWhitePoint                 : 0.95045 1 1.08905
[ICC_Profile]   MediaBlackPoint                 : 0 0 0
[ICC_Profile]   RedMatrixColumn                 : 0.43607 0.22249 0.01392
[ICC_Profile]   GreenMatrixColumn               : 0.38515 0.71687 0.09708
[ICC_Profile]   BlueMatrixColumn                : 0.14307 0.06061 0.7141
[ICC_Profile]   DeviceMfgDesc                   : IEC http://www.iec.ch
[ICC_Profile]   DeviceModelDesc                 : IEC 61966-2.1 Default RGB colour space - sRGB
[ICC_Profile]   ViewingCondDesc                 : Reference Viewing Condition in IEC61966-2.1
[ICC_Profile]   Luminance                       : 76.03647 80 87.12462
[ICC_Profile]   Technology                      : Cathode Ray Tube Display
[ICC_Profile]   RedTRC                          : (Binary data 2060 bytes, use -b option to extract)
[ICC_Profile]   GreenTRC                        : (Binary data 2060 bytes, use -b option to extract)
[ICC_Profile]   BlueTRC                         : (Binary data 2060 bytes, use -b option to extract)
[ICC-view]      ViewingCondIlluminant           : 19.6445 20.3718 16.8089
[ICC-view]      ViewingCondSurround             : 3.92889 4.07439 3.36179
[ICC-view]      ViewingCondIlluminantType       : D50
[ICC-meas]      MeasurementObserver             : CIE 1931
[ICC-meas]      MeasurementBacking              : 0 0 0
[ICC-meas]      MeasurementGeometry             : Unknown (0)
[ICC-meas]      MeasurementFlare                : 0.999%
[ICC-meas]      MeasurementIlluminant           : D65
[Adobe]         DCTEncodeVersion                : 100
[Adobe]         APP14Flags0                     : [14], Encoded with Blend=1 downsampling
[Adobe]         APP14Flags1                     : (none)
[Adobe]         ColorTransform                  : YCbCr
[Composite]     ImageSize                       : 898x1024


The keywords are in the file but not in the xml Style i like.

Can you pleas give me clue?

Phil Harvey

I'm afraid that I'm as confused as you are.  In this output I see that the keyword "schlagwort" is stored as XMP-dc:subject.  This looks good to me.  Are you having trouble making the connection between this and the command to write this?:

exiftool -xmp-dc:subject="schlagwort" photo.jpg

- Phil
...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 ($).

christian.schumacher

Thanks Phil

that was the missing link to my "Schlagwort" and the XMP Style. :)

But i cant see this Paragraph in the FAQ.

Phil Harvey

That is what this paragraph was trying to explain:

If you are having problems with other software reading information written by ExifTool, if possible try first writing the information from the other software, then use ExifTool (with the -a and -G1 options) to determine where the information was written. Once you know where it should go, you can use ExifTool to write to this location. You can read or write information in a specific location by prefixing the tag name on the command line with the desired group name. ie) "-ExifIFD:DateTimeOriginal"

- Phil
...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 ($).