Looking for JPEG with the keyword Hervé

Started by TazQuebec, February 21, 2016, 11:57:34 PM

Previous topic - Next topic

TazQuebec

I have try:
exiftool -if '$keywords =~ /Hervé/i' -filename dir

D:\Temp\exiftool>exiftool -if '$keywords =~ /Hervé/i' -filename *.jpg
File not found: ~
File not found: /HervÚ/i'
    2 files failed condition
    0 image files read
    2 files could not be read

D:\Temp\exiftool>exiftool -if '$keywords =~ /Herve/i' -filename *.jpg
File not found: ~
File not found: /Herve/i'
    2 files failed condition
    0 image files read
    2 files could not be read


Here my goal.

Since my PS3 as trouble with keyword with french accent, I what to rename them in two step.

1) Adding the keyword without accent where use
exiftool -keywords+=Herve -if '$keywords =~ /Hervé/i' *.jpg

2)Deleting the keyword with accent where use
exiftool -keywords-=Hervé -if '$keywords =~ /Hervé/i' *.jpg


What to I do wrong?

Thanks



StarGeek

Since you appear to be on windows, you'll want to use double quotes " instead of single quotes '.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

TazQuebec

Thanks

Now this work
D:\Temp\exiftool>exiftool -if "$keywords =~ /parents/i" -filename *.jpg
======== 20140726_151041.JPG
File Name                       : 20140726_151041.JPG
======== 20140726_183218.JPG
File Name                       : 20140726_183218.JPG
    2 image files read

But not this
D:\Temp\exiftool>exiftool -if "$keywords =~ /Hervé/i" -filename *.jpg
    2 files failed condition

D:\Temp\exiftool>exiftool -if "$keywords =~ /Herv\N{U+00E9}/i" -filename *.jpg
    2 files failed condition

D:\Temp\exiftool>exiftool -if "$keywords =~ /Hervé/i" -filename *.jpg
    2 files failed condition

D:\Temp\exiftool>exiftool -if "$keywords =~ /Hervé/i" -filename *.jpg
    2 files failed condition

D:\Temp\exiftool>exiftool -if "$keywords =~ /Hervé/i" -filename *.jpg
    2 files failed condition

D:\Temp\exiftool>exiftool -if "$keywords =~ /Herv\xE9/i" -filename *.jpg
    2 files failed condition

D:\Temp\exiftool>exiftool -if "$keywords =~ /Herv\u00E9/i" -filename *.jpg
    2 files failed condition

Any idea why?

Thanks


StarGeek

This would probably be covered by FAQ 10 and  FAQ 18.

Try adding -L
exiftool -if "$keywords =~ /Hervé/i" -L -filename *.jpg
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

TazQuebec

Thanks you

I am now able to do it.

D:\Temp\exiftool>exiftool -keywords-=Hervé -keywords+=Herve -if "$keywords =~ /Hervé/i" -L *.jpg
    1 files failed condition
    1 image files updated