
ExifTool
CLI读写图片、视频、音频、PDF 等数百种文件元数据的经典命令行工具,覆盖 EXIF、GPS、IPTC、XMP 与各相机厂商私有字段,可批量改写、清除或转换元数据。需要 Perl 环境。
ExifTool by Phil Harvey (philharvey66 at gmail.com)
ExifTool is a customizable set of Perl modules plus a full-featured command-line application for reading and writing meta information in a wide variety of files, including the maker note information of many digital cameras by various manufacturers such as Canon, Casio, DJI, FLIR, FujiFilm, GE, HP, JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, Nikon, Nintendo, Olympus/Epson, Panasonic/Leica, Pentax/Asahi, Phase One, Reconyx, Ricoh, Samsung, Sanyo, Sigma/Foveon and Sony.
Below is a list of file types and meta information formats currently supported by ExifTool (r = read, w = write, c = create):
File Types ------------+-------------+-------------+-------------+------------ 360 r/w | DR4 r/w/c | JNG r/w | ODP r | RTF r 3FR r | DSF r | JP2 r/w | ODS r | RW2 r/w 3G2 r/w | DSS r | JPEG r/w | ODT r | RWL r/w 3GP r/w | DV r | JSON r | OFR r | RWZ r 7Z r | DVB r/w | JXL r/w | OGG r | RM r A r | DVR-MS r | K25 r | OGV r | SEQ r AA r | DYLIB r | KDC r | ONP r | SKETCH r AAC r | EIP r | KEY r | OPUS r | SO r AAE r | EPS r/w | KVAR r | ORF r/w | SR2 r/w AAX r/w | EPUB r | LA r | ORI r/w | SRF r ACR r | ERF r/w | LFP r | OTF r | SRW r/w AFM r | EXE r | LIF r | PAC r | SVG r AI r/w | EXIF r/w/c | LNK r | PAGES r | SWF r AIFF r | EXR r | LRV r/w | PBM r/w | THM r/w APE r | EXV r/w/c | M2TS r | PCAP r | TIFF r/w ARQ r/w | F4A/V r/w | M4A/V r/w | PCAPNG r | TNEF r ARW r/w | FFF r/w | MACOS r | PCD r | TORRENT r ASF r | FIT r | MAX r | PCX r | TTC r AVI r | FITS r | MEF r/w | PDB r | TTF r AVIF r/w | FLA r | MIE r/w/c | PDF r/w | TXT r AZW r | FLAC r | MIFF r | PEF r/w | URL r BMP r | FLIF r/w | MKA r | PFA r | VCF r BPG r | FLV r | MKS r | PFB r | VNT r BTF r | FPF r | MKV r | PFM r | VRD r/w/c C2PA r | FPX r | MNG r/w | PGF r | VSD r CHM r | GIF r/w | MOBI r | PGM r/w | VSDX r COS r | GLV r/w | MODD r | PLIST r | WAV r CR2 r/w | GPR r/w | MOI r | PICT r | WDP r/w CR3 r/w | GZ r | MOS r/w | PMP r | WEBP r/w CRM r/w | HDP r/w | MOV r/w | PNG r/w | WEBM r CRW r/w | HDR r | MP3 r | PPM r/w | WMA r CS1 r/w | HEIC r/w | MP4 r/w | PPT r | WMV r CSV r | HEIF r/w | MPC r | PPTX r | WOFF r CUR r | HTML r | MPG r | PS r/w | WOFF2 r CZI r | ICC r/w/c | MPO r/w | PSB r/w | WPG r DCM r | ICO r | MQV r/w | PSD r/w | WTV r DCP r/w | ICS r | MRC r | PSP r | WV r DCR r | IDML r | MRW r/w | QTIF r/w | X3F r/w DFONT r | IIQ r/w | MXF r | R3D r | XCF r DIVX r | IND r/w | NEF r/w | RA r | XISF r DJVU r | INSP r/w | NKA r | RAF r/w | XLS r DLL r | INSV r | NKSC r/w | RAM r | XLSX r DNG r/w | INX r | NRW r/w | RAR r | XMP r/w/c DOC r | ISO r | NUMBERS r | RAW r/w | ZIP r DOCX r | ITC r | NXD r | RIFF r | DPX r | J2C r | O r | RSRC r |
Meta Information ----------------------+----------------------+--------------------- EXIF r/w/c | CIFF r/w | Ricoh RMETA r GPS r/w/c | AFCP r/w | Picture Info r IPTC r/w/c | Kodak Meta r/w | Adobe APP14 r XMP r/w/c | FotoStation r/w | MPF r MakerNotes r/w/c | PhotoMechanic r/w | Stim r Photoshop IRB r/w/c | JPEG 2000 r | DPX r ICC Profile r/w/c | DICOM r | APE r MIE r/w/c | Flash r | Vorbis r JFIF r/w/c | FlashPix r | SPIFF r Ducky APP12 r/w/c | QuickTime r | DjVu r PDF r/w/c | Matroska r | M2TS r PNG r/w/c | MXF r | PE/COFF r Canon VRD r/w/c | PrintIM r | AVCHD r Nikon Capture r/w/c | FLAC r | ZIP r GeoTIFF r/w/c | ID3 r | (and more)
See html/index.html for more details about ExifTool features.
ExifTool can be downloaded from
RUNNING
The exiftool script can be run right away without the need to install Image::ExifTool. For example, from within the exiftool directory you can extract the information from one of the included test files by typing:
./exiftool t/images/ExifTool.jpg
If you move the exiftool script to a different directory, you must also either move the contents of the lib directory or install the Image::ExifTool package so the script can find the necessary libraries.
Note: If you are using the Windows cmd shell, you may need to rename 'exiftool' to 'exiftool.pl' to run it directly from the command line. Alternatively, you can run exiftool with the command 'perl exiftool'.
IF YOU ARE STILL CONFUSED
The exiftool script is a command line application. You run it by typing commands in a terminal window. The first step is to determine the name of the directory where you downloaded the ExifTool distribution package. Assuming, for example, you downloaded it to a folder called "Desktop" in your home directory, then you would type the following commands in a terminal window to extract and run ExifTool:
cd ~/Desktop gzip -dc Image-ExifTool-13.60.tar.gz | tar -xf - cd Image-ExifTool-13.60 ./exiftool t/images/ExifTool.jpg
Note: These commands extract meta information from one of the test images. To use one of your images instead, enter the full path name of your file in place of "t/images/ExifTool.jpg".
INSTALLATION
You can install the Image::ExifTool package to make it available for use by other Perl scripts by typing the following:
perl Makefile.PL make make test make install
Notes: i) You need root access for the last step above.
ii) Some Perl installations (like the standard OSX installation) may not contain the necessary files to complete the first step above. But no worries: You can install ExifTool manually by moving 'exiftool' and the 'lib' directory to any directory in your current PATH (ie. /usr/bin).
iii) In Windows, "dmake" or "nmake" may be used if "make" is not available.
(Also see html/install.html for more help with installation.)
DEPENDENCIES
Requires Perl version 5.004 or later. No other special libraries are required, however the following modules are recommended for decoding compressed and/or encrypted information from the indicated file types, and for calculating digest values and providing other features listed below:
Archive::Zip (ZIP, DOCX, PPTX, XLSX, ODP, ODS, ODT, EIP, iWork) Compress::Zlib (DNG, PNG, PDF, DCM, MIE and SWF files) Digest::MD5 (PDF files, IPTC information, and JPG Extended XMP) Digest::SHA (PDF with AES-256 encryption) IO::Compress::Bzip2 (RWZ files) Time::HiRes (for generating ProcessingTime tag) POSIX::strptime (for inverse date/time conversion) Time::Piece (alternative to POSIX::strptime) Unicode::LineBreak (for column alignment of alternate-language output) Win32::API (for proper handling of Windows file names/times) Win32::FindFile (for Windows Unicode directory support, app only) Win32API::File (for Windows Unicode file names and file times) File::StatX (for reading FileCreateDate on Linux systems) Compress::Raw::Lzma (for reading encoded 7z files) IO::Compress::RawDeflate (for writing FLIF images) IO::Uncompress::RawInflate (for reading FLIF images) IO::Compress::Brotli (for writing compressed JXL metadata) IO::Uncompress::Brotli (for reading compressed JXL metadata)
COPYRIGHT AND LICENSE
Copyright 2003-2026, Phil Harvey
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself (either the Perl Artistic License or GPL).
DISTRIBUTION FILES
Below is a list of the files/directories included in the full ExifTool distribution package:
Changes - Revision history MANIFEST - Full list of distribution files META.json - Standard CPAN dependency file (JSON format) META.yml - Standard CPAN dependency file (YAML format) Makefile.PL - Makefile for installation README - This file arg_files/ - Argument files to convert metadata formats: exif2iptc.args - Arguments for converting EXIF to IPTC exif2xmp.args - Arguments for converting EXIF to XMP gps2xmp.args - Arguments for converting GPS to XMP iptc2exif.args - Arguments for converting IPTC to EXIF iptc2xmp.args - Arguments for converting IPTC to XMP iptcCore.args - Complete list of IPTC Core XMP tags pdf2xmp.args - Arguments for converting PDF to XMP xmp2exif.args - Arguments for converting XMP to EXIF xmp2gps.args - Arguments for converting XMP to GPS xmp2iptc.args - Arguments for converting XMP to IPTC xmp2pdf.args - Arguments for converting XMP to PDF build_geolocation - Build custom Geolocation database config_files/ - Sample ExifTool configuration files: acdsee.config - Definitions for writing ACDSee XMP regions age.config - Calculate Age of person in photo bibble.config - Definitions for writing Bibble XMP tags convert_regions.config - Convert between MWG, MP and IPTC regions cuepointlist.config - Extract cue points and labels as a list depthmap.config - Extract Google DepthMap images example.config - General example showing config features fotoware.config - Definitions for writing Fotoware XMP tags frameCount.config - Extract FrameCount from MP4 videos gps2utm.config - Generate UTM coordinate tags from GPS info guano.config - Decode individual tags from Guano metadata local_time.config - Determine local time from GPS information nksc.config - Decode tags in Nikon ViewNX NKSC files novelty.config - Definitions for XMP Novelty Theory tags onone.config - Definitions for writing On1 XMP tags photoshop_paths.config - For extracting or copying Photoshop paths picasa_faces.config - Convert from Picasa to MWG/MP face regions pix4d.config - Definitions for writing Pix4D XMP tags rotate_regions.config - Rotate MWG and MP region tags tiff_version.config - Determine the version of a TIFF file time_zone.config - Calculate time zone from EXIF tags exiftool - The exiftool application (Perl script) fmt_files/ - Output formatting example files: gpx.fmt - Format file for creating GPX track gpx_wpt.fmt - Format file for creating GPX waypoints kml.fmt - Format file for creating KML placemarks kml_track.fmt - Format file for creating KML track html/ - HTML documentation html/TagNames/ - HTML tag name documentation lib/ - ExifTool Perl library modules perl-Image-ExifTool.spec - Red Hat Packaging Manager specification file t/ - Verification test code t/images/ - Verification test images
ADDITIONAL INFORMATION
Read the following files included in the full distribution for more information:
html/index.html - Main ExifTool documentation html/install.html - Installation instructions html/history.html - Revision history html/ExifTool.html - API documentation html/TagNames/index.html - Tag name documentation html/geotag.html - Geotag feature html/geolocation.html - Geolocation feature html/faq.html - Frequently asked questions html/filename.html - Renaming/moving files html/metafiles.html - Working with metadata sidecar files html/struct.html - Working with structured XMP information lib/Image/ExifTool/README - ExifTool library modules documentation
and if you have installed Image::ExifTool, you can also consult perldoc or the man pages:
perldoc exiftool perldoc Image::ExifTool perldoc Image::ExifTool::TagNames
man exiftool man Image::ExifTool man Image::ExifTool::TagNames
Note: If the man pages don't work, it is probably because your man path is not set to include the installed documentation. See "man man" for information about how to set the man path.
相關資源

Cloudinary MCP Servers
MCPCloudinary 官方 MCP 合集:用对话上传、搜索和变换图片与视频,管理上传预设与结构化元数据,做 AI 内容分析、审核和自动打标签,适合维护设计与营销素材库。需 Cloudinary 账号,部分功能要付费套餐;下面的命令只接入素材管理服务器,其余服务器可按同样方式添加。
cloudinary/mcp-servers10
Cloudinary Plugin
PluginCloudinary 官方插件,预置 5 个 MCP 服务和 3 个技能:用自然语言上传、管理、裁剪和压缩图片视频素材,做 AI 图像分析和自动化媒体流程,也能查文档帮开发者接入。需 Cloudinary 账号(有免费档,也可让 agent 先开临时云、24 小时内认领)。
cloudinary-devs/cloudinary-plugin0
Rembg
CLI一条命令去除图片背景:支持单张、整个文件夹批处理和监听目录,可只输出蒙版、切换 U2Net、SAM 等模型,也能启动 HTTP 服务或配合 FFmpeg 处理视频帧。默认模型在本地推理。
danielgatis/rembg25.3k
Video2X
CLI基于机器学习的视频超分与补帧工具,用 Real-ESRGAN、Real-CUGAN、RIFE 等模型把低清老视频放大到高清或提高帧率;video2x 命令一次处理一个视频,可脚本批量调用。需要支持 Vulkan 的显卡,提供 Windows 安装包、Linux 软件包与 Docker 镜像,无 macOS 原生版。
k4yt3x/video2x22.6k
ImageMagick
CLI老牌图像处理命令行套件,支持 JPEG、PNG、GIF、TIFF、PDF 等众多格式的转换、缩放、裁剪、合成与批量处理,适合 agent 在脚本里处理图片。
ImageMagick/ImageMagick17.8k
libvips
CLI速度快、省内存的图像处理库,自带 vips 命令行,可批量缩放、裁剪、旋转、转换格式(WebP、AVIF、HEIC、TIFF 等)和生成缩略图,处理超大尺寸图片也不卡。适合设计和媒体团队批量处理素材,macOS 用 Homebrew 安装。
libvips/libvips11.8k