How to remove EXIF data without recompressing the JPEG?

Denilson Sá Maia picture Denilson Sá Maia · Apr 16, 2010 · Viewed 87.2k times · Source

I want to remove the EXIF information (including thumbnail, metadata, camera info... everything!) from JPEG files, but I don't want to recompress it, as recompressing the JPEG will degrade the quality, as well as usually increasing the file size.

I'm looking for a Unix/Linux solution, even better if using the command-line. If possible, using ImageMagick (convert tool). If that's not possible, a small Python, Perl, PHP (or other common language on Linux) script would be ok.

There is a similar question, but related to .NET.

Answer

chris picture chris · Apr 16, 2010

exiftool does the job for me, it's written in perl so should work for you on any o/s

https://exiftool.org/

usage :

exiftool -all= image.jpg