Problem with the lengh of -Keywords

Started by evilaro, February 12, 2012, 05:08:43 AM

Previous topic - Next topic

evilaro

Hi:

I am trying to place some keywords using

exiftool.exe  -charset cp1252 -Keywords="&METIQ"  "&mimag" >sssss.txt

If the number of characteres that METIQ has is less than about 98 characteres all is fine...
if there is more...
I can see on CMD

something like      Warning  excess IPTC, truncated
and the keyword places is no longer than 98 characteres, that includes the heading.

Keywords                        : 12345678901234567890....  // total 98 char

The sssss.txt file says it is 1 file uploaded but does not show the really error message I am getting 

I have tryied with other tags like -Subject... and it works, looks like there is no limit.

Really a 98 characteres limit for -Keywords in a real problem.

Or I am doing something wrong.

Thanks

Emilio


www.evilfoto.eu
*************

BogdanH

Hi Emilio,

Officially, single Iptc keyword is limited to 64 characters... but seriously, what single word does contain that many characters?
QuoteOr I am doing something wrong.
I assume you're writting stories into keywords. I mean, keyword is supposed to be a single word.

Bogdan

evilaro

Hi BogdanH

Thanks for your fast answer....

NO, I do not want to write storiesl... ;), just several keywords

The Limit of 64 is enought.... if I can place several of them, but I did not know that I could put
Several -Keywords or several -Subject and they will be placed together separated by a comma.

Your comment gave the clue...

Thanks

So I could get this... (sorry I should have tiped something more elegant)
Thsi is the result of putting 2 keywords and 2 subjects....

Keywords                        : aaasasa sa sas as as asasasas as as asas asas fin, b111111 1 1111 1 11111 11 1 111111 1111 1 11 1 11 111 1
Subject                         : aaaaaaaaaa aaaaaaaaaaaaaaaaaa aaaaaaaaaaaa, sdasd asd asd asd asd asd asd asd asd asdasdasdas

Good enough.... I have been able to get more than 6 of this keywords.



Thanks Bogdan
Emilio



Quote from: BogdanH on February 12, 2012, 05:23:33 AM
Hi Emilio,

Officially, single Iptc keyword is limited to 64 characters... but seriously, what single word does contain that many characters?
QuoteOr I am doing something wrong.
I assume you're writting stories into keywords. I mean, keyword is supposed to be a single word.

Bogdan
www.evilfoto.eu
*************

BogdanH

Hi Emilio,

I'm not sure if you treat keywords properly... try this:

exiftool -keywords=bird myPhoto.jpg
then:
exiftool -keywords+="high in the sky" myPhoto.jpg
and finally:
exiftool -keywords+='with sunset" myPhoto.jpg
Now execute:
exiftool -keywords myPhoto.jpg
and you'll get three keywords, shown separated by comma.
The problem in case more than one word is used for single keyword is, you can't remove part of the keyword. That is, from above example, you can't remove word "high" from "high in the sky" -you need to remove entire keyword:
exiftool -keywords-="high in the sky" myPhoto.jpg
and then write:
exiftool -keywords+="in the sky" myPhoto.jpg

And finally, when searching photo with keywords... how will you remember you've used "high in the sky" keyword? That's why I propose to use single word for each keyword, i.e. "bird", "sky" and "sunset".

I apologize, in case I didn't understand your problem.

Bogdan

Phil Harvey

Hi Emilio,

Read the IPTC Tags documentation for details about the length limits on IPTC information.  Also read FAQ number 17 for more information about the behaviour of list-type tags.  The IPTC length limit applies to individual keywords items, so the total length may be more.

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

evilaro

Hi Bogdan:

Well with this list of new options
that I did not knew, I feel muy problems are solved.

+= and -=   look really powerful... thanks...

Let me work on this to see If I get to solve my
problem and I will come back.

I also understand the point of the espaces.

Thanks

Emilio


Quote from: BogdanH on February 12, 2012, 06:40:30 AM
Hi Emilio,

I'm not sure if you treat keywords properly... try this:

exiftool -keywords=bird myPhoto.jpg
then:
exiftool -keywords+="high in the sky" myPhoto.jpg
and finally:
exiftool -keywords+='with sunset" myPhoto.jpg
Now execute:
exiftool -keywords myPhoto.jpg
and you'll get three keywords, shown separated by comma.
The problem in case more than one word is used for single keyword is, you can't remove part of the keyword. That is, from above example, you can't remove word "high" from "high in the sky" -you need to remove entire keyword:
exiftool -keywords-="high in the sky" myPhoto.jpg
and then write:
exiftool -keywords+="in the sky" myPhoto.jpg

And finally, when searching photo with keywords... how will you remember you've used "high in the sky" keyword? That's why I propose to use single word for each keyword, i.e. "bird", "sky" and "sunset".

I apologize, in case I didn't understand your problem.

Bogdan
www.evilfoto.eu
*************

evilaro

Hi Phil:

Yes.... that was my worries, the 64 characters limit, but if
I can put several of them... then Ieel there is NO problem.

Thanks a lot...

I have read the tips you gave me... I feel there is a lot of
power in Exiftool....

Thanks

Emilio


Quote from: Phil Harvey on February 12, 2012, 10:30:31 AM
Hi Emilio,

Read the IPTC Tags documentation for details about the length limits on IPTC information.  Also read FAQ number 17 for more information about the behaviour of list-type tags.  The IPTC length limit applies to individual keywords items, so the total length may be more.

- Phil
www.evilfoto.eu
*************