Loading

Linux 下照片元数据(EXIF)编辑软件

Phatch 简单易用的跨平台的GUI图片批量处理器 http://www.phatch.org/
Photini 容易上手的数码照片 Exif 编辑器 https://github.com/jim-easterbrook/Photini
ExifTool 可以以命令行来修改 Exif 的软件 http://www.sno.phy.queensu.ca/~phil/exiftool/
digiKam 查看和编辑元数据的工具 http://www.digikam.org/

ExifTool

安装操作:

Unix Platforms
Download the Image-ExifTool distribution from the ExifTool home page
(The file you download should be named "Image-ExifTool-11.97.tar.gz".)
Unpack the distribution and make it your current directory by typing:
    cd <your download directory>
    gzip -dc Image-ExifTool-11.97.tar.gz | tar -xf -
    cd Image-ExifTool-11.97
(At this point you may run exiftool by typing "./exiftool <image file name>".)
Test and install ExifTool by typing:
    perl Makefile.PL
    make test
    sudo make install
(Note: The "make test" step is not required, but useful because it runs a full suite of tests to verify that ExifTool is working properly on your system. The "sudo make install" command requires that you have su access, and will prompt for your password. This will make ExifTool and its documentation accessible to all users on your system. If you don't have su access, you can run ExifTool in your own account by moving "exiftool" and its "lib" directory to any convenient location, preferably somewhere in your PATH.)
You can now run exiftool by typing "exiftool". Also, you can consult the ExifTool documentation with commands like:

perldoc exiftool
perldoc Image::ExifTool
perldoc Image::ExifTool::TagNames
or

man exiftool
man Image::ExifTool
man Image::ExifTool::TagNames
Uninstalling
Type "sudo make uninstall" from the distribution directory.
(Note: Unfortunately, newer systems may give an "Uninstall is unsafe and deprecated" message even though uninstalling ExifTool is safe because it has no dependencies. If this happens, the necessary commands to remove the installed files will be listed, and these commands must be run manually.)


使用

$ exiftool -gps:all= photo.jpg  #有些相机会记录拍照时的GPS定位信息。如果你不希望别人看到使用该命令删除gps信息
$ exiftool -all= photo.jpg  #删除所有信息
$ exiftool -all= --exif:all photo.jpg  #删除EXIF以外的所有信息

参考:
https://www.jianshu.com/p/d76457799de1

posted @ 2020-05-01 13:52  Lust4Life  阅读(814)  评论(0)    收藏  举报