Jump to content

Command Crate ¿about?

Remove all metadata from image files (PNG, JPEG, GIF, WebP) recursively (exiftool)

find . -type f \( -name "*.[Pp][Nn][Gg]" -o -name "*.[Jj][Pp]*[Gg]" -o -name "*.[Gg][Ii][Ff]" -o -name "*.[Ww][Ee][Bb][Pp]" \) -exec exiftool -overwrite_original -all= {} \;

This command searches for image files (*.png, *.jpg, *.jpeg, *.gif, *.webp) in the directory and its subdirectories and uses exiftool to strip all metadata from each file. The -overwrite_original flag ensures that the images are overwritten with metadata-free versions, which is useful for privacy, reducing file size, or preparing files for distribution.

file management [kb:77]