I want a command that will allow me to delete all metadata (XMP, EXIF, IPTC) from all images found in a folder (jpg, gif, png, bmp, JPG, jpeg). And either replace the original images with the updated images, or insert "_original" at the beginning of the filename to make for easier sorting.
I have the following command:
exiftool -all= -overwrite_original *.jpg *.JPG *.jpeg *.png *.gif *.bmp
But it doesn't seem to work on .gifs and .bmp images, and if I leave out the "-overwrite_original" part it inserts "_original" at the end of the filename instead of the beginning, so that I can't sort to clearly differentiate the updated files from the originals.
It would also be nice if the command could optimize the images, in addition to deleting metadata.
Thank you.
Quote from: birchtree on July 21, 2014, 12:44:18 PM
But it doesn't seem to work on .gifs and .bmp images
Gifs shouldn't have EXIF or IPTC data according to this page (http://www.exiftool.org/TagNames/GIF.html), though XMP is possible. Bmp (http://www.exiftool.org/TagNames/BMP.html) shouldn't have any metadata at all.
QuoteIt would also be nice if the command could optimize the images, in addition to deleting metadata.
ExifTool doesn't do any image processing. For that you'll have to rely on a different program.
If you sort by date, all of the updated files will have the current date/time. Also, you can add -o DIR/ to write the edited images to another directory. Or you can add -o "new_%f.%e" to add "new_" to the start of the new files. But using -o will cause images where no metadata was changed to also be copied.
- Phil
Thank you!