I'm looking for a way to get rid of ALL metadata associated with an image. What should I do?
A big-hammer approach is jhead's
-purejpg option, which, according to the documentation:
Deletes all JPEG sections that aren’t necessary for rendering the image. Strips any metadata that various applications may have left in the image.
This is a cross-platform (Mac, Linux, Windows) command-line program. For example, if you want to remove metadata from a file named "image.jpg" in the current directory, you would run
jhead -purejpg image.jpg
and that is all there is to it.
Exiftool is able to do this using the
-ALL= (see the linked documentation). You can apply better control on this, however, and I would recommend that instead of just deleting all metadata. If you're looking to remove the location information, for example, just use some pattern matching.