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.
exiftool does the job for me, it’s written in perl so should work for you on any o/s
https://exiftool.org/
usage :
UPDATED – as PeterCo explains below this will remove ALL of the tags. if you just want to remove the EXIF tags then you should use