Linux Bash – Batch Delete EXIF Info from Images

bashexifimage manipulationlinux

How can I recursively remove the EXIF info from several thousand JPG files?

Best Answer

The other ExifTool suggestions are great if you want to remove or change specific sections. But if you want to just remove all of the metadata completely, use this (from the man page):

   exiftool -all= dst.jpg
        Delete all meta information from an image.

You could also use jhead, with the -de flag:

   -de    Delete the Exif header entirely.  Leaves  other  metadata
          sections intact.

Note that in both cases, EXIF is only one type of metadata. Other metadata sections may be present, and depending on what you want to do, both of these programs have different options for preserving some or removing it all. For example, jhead -purejpg strips all information not needed for rendering the image.

Related Question