2023-04-18

photo tagging #photo

Mapping SMB to a drive letter

New-SmbMapping z: \\nasj\home

[Console]::OutputEncoding=[Text.Encoding]::Unicode

Delete a keyword

exiftool -IPTC:Keywords-="KeywordToRemove" -overwrite_original input.jpg

Note that ExifTool will create a backup of the original file (with "_original" appended to the filename) if you don't use the -overwrite_original flag. To disable this backup, add -overwrite_original to the command

//give me the list of keywords
exiftool -IPTC:Keywords -s3 input.jpg

//remove the keyword
exiftool -IPTC:Keywords-="Année" -L -overwrite_original *.jpg
  • L'option -s3 permet de n'afficher que la valeur des mots-clés, sans le nom de la balise.
  • L'options -L permet de prendre en compte les caractères latin1 (é, è, à, etc.) pour ici le 'é'.
  • -r enables the recursive processing of subdirectories.

Mass delete keywords

exiftool -IPTC:Keywords-="Année" -L -IPTC:Keywords-="Pays" -IPTC:Keywords-="Evénements" -L -IPTC:Keywords-="Evenement" -IPTC:Keywords-="Personnes" -overwrite_original -r *
  • -r enables the recursive processing of subdirectories.