Command Request - Delete all Metadata from all Images

Started by birchtree, July 21, 2014, 12:44:18 PM

Previous topic - Next topic

birchtree

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.

StarGeek

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, though XMP is possible.  Bmp 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.
"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

Phil Harvey

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