如何在不重新压缩JPEG的情况下删除EXIF数据? [英] How to remove EXIF data without recompressing the JPEG?

查看:555
本文介绍了如何在不重新压缩JPEG的情况下删除EXIF数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从JPEG文件中删除EXIF信息(包括缩略图,元数据,相机信息......一切!),但我不想重新压缩它,因为重新压缩JPEG会降低质量,以及通常会增加文件大小。

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.

我正在寻找一个Unix / Linux解决方案,如果使用命令行会更好。如果可能,使用ImageMagick(转换工具)。如果那是不可能的,那么一个小的Python,Perl,PHP(或Linux上的其他通用语言)脚本就可以了。

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.

有一个类似的问题,但与.NET相关

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

推荐答案

exiftool为我做的工作,它是用perl编写的,所以应该在任何o / s上为你工作

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

http://www.sno.phy .queensu.ca / ~phil / exiftool

用法:

exiftool -all= image.jpg

这篇关于如何在不重新压缩JPEG的情况下删除EXIF数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆