find IPTC tags > 64 characters

Started by mmjoshi, March 19, 2024, 02:03:41 AM

Previous topic - Next topic

mmjoshi

I am using digiKam to tag all my RAW and processed images(tif, jpg). I would like to keep the tag information in IPTC:keywords as IrfanView does not support xmp yet for all file formats. I believe there is a limit of 64 characters for the IPTC tag length. Some of my images are already tagged and do have tags IPTC:keywords >64. Is there a way to find all these images with tag length> 64 using a command line?


mmjoshi

Quote from: wywh on March 19, 2024, 03:09:46 AMDid you see this:

Finally, Irfanview has added support for viewing XMP metadata

Unfortunately, that works only for jpg files. Lot of my tagged files are dng, arw or tif.

Phil Harvey

The 64-character limit is for individual keywords, which should be good enough for most purposes.  You can have as many of the 64-character keywords as you want.

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

StarGeek

Quick and dirty, not pretty, but you could use something like

exiftool -m -p "$Filename ${Keywords@;$_=undef if (length($_)<65)}" /path/to/files/

The output will be just the filename for any file with keywords that are less than 65 characters long, or the filename plus the keywords that are 65 or more characters.

Example using 6 as the limit
C:\>exiftool -G1 -a -s -keywords y:\!temp\Test3.jpg y:\!temp\Test4.jpg
======== y:/!temp/Test3.jpg
[IPTC]          Keywords                        : One, two
======== y:/!temp/Test4.jpg
[IPTC]          Keywords                        : 12345, 1234567, 1234567890
    2 image files read

C:\>exiftool -m -p "$Filename ${Keywords@;$_=undef if (length($_)<6)}" y:\!temp\Test3.jpg y:\!temp\Test4.jpg
Test3.jpg
Test4.jpg 1234567, 1234567890
    2 image files read
"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