How to remove EXIF data without recompressing the JPEG?

后端 未结 11 1977
梦毁少年i
梦毁少年i 2020-12-02 05:07

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 J

相关标签:
11条回答
  • 2020-12-02 05:30

    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
    
    0 讨论(0)
  • 2020-12-02 05:30

    With imagemagick:

    convert <input file> -strip <output file>
    
    0 讨论(0)
  • 2020-12-02 05:32

    I'd propose jhead:

    man jhead
    jhead -purejpg image.jpg
    

    Only 123Kb on debian/ubuntu, does not re-compress. Note though that it mutates the image, so copy the original if you need it.

    0 讨论(0)
  • 2020-12-02 05:35

    We used this to remove latitude data from TIFF file:

    exiv2 mo -M"del Exif.GPSInfo.GPSLatitude" IMG.TIF where you can use exiv2 -pa IMG.TIF to list all metadata.

    0 讨论(0)
  • 2020-12-02 05:36

    If you already use jpegoptim you can use it to remove the exif, too.

    jpegoptim -s *
    
    0 讨论(0)
提交回复
热议问题