Linux command
exif 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
exif [path/to/image.jpg]
Example
exif [-l|--list-tags] [path/to/image.jpg]
Extract
exif [-e|--extract-thumbnail] [-o|--output] [path/to/thumbnail.jpg] [path/to/image.jpg]
Example
exif --ifd [0] [-t|--tag] "[Model]" [-m|--machine-readable] [path/to/image.jpg]
Change
exif [-o|--output] [path/to/new.jpg] --ifd [0] [-t|--tag] "[Artist]" --set-value "[John Smith]" --no-fixup [path/to/image.jpg]
Remove
exif --remove --ifd [0] [-t|--tag] "[Artist]" [-o|--output] [path/to/new.jpg] [path/to/image.jpg]
Create
exif [-c|--create-exif] [-o|--output] [path/to/new.jpg] [path/to/image.jpg]
说明
exif shows and modifies EXIF metadata in JPEG files. EXIF data contains camera settings, date/time, GPS coordinates, and other image information. Command-line tool for quick EXIF inspection and modification. It can list tags, extract and manage thumbnails, read and write individual tag values, and create EXIF data from scratch.
参数
- -v, --version
- Display version number.
- -l, --list-tags
- List known EXIF tags.
- -e, --extract-thumbnail
- Extract embedded thumbnail.
- -r, --remove-thumbnail
- Remove thumbnail from image.
- -n, --insert-thumbnail _file_
- Insert file as thumbnail.
- -o, --output _file_
- Output file for operations.
- -t, --tag _tag_
- Specify tag name or number.
- -s, --show-description
- Show description of tag.
- --set-value _value_
- Set tag to value.
- --remove
- Remove tag or entire IFD.
- --ifd _ifd_
- Select IFD (0, 1, EXIF, GPS, Interoperability).
- -c, --create-exif
- Create EXIF data if absent.
- -m, --machine-readable
- Machine-readable tab-delimited output.
- -x, --xml-output
- Produce XML output.
- -i, --ids
- Show ID numbers instead of tag names.
- --no-fixup
- Don't fix EXIF violations.
- -d, --debug
- Show debug messages.
- -w, --width _n_
- Set maximum output width (default 80).
FAQ
What is the exif command used for?
exif shows and modifies EXIF metadata in JPEG files. EXIF data contains camera settings, date/time, GPS coordinates, and other image information. Command-line tool for quick EXIF inspection and modification. It can list tags, extract and manage thumbnails, read and write individual tag values, and create EXIF data from scratch.
How do I run a basic exif example?
Run `exif [path/to/image.jpg]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v, --version do in exif?
Display version number.