2025-03-14 21:59:59 -06:00
|
|
|
# exif
|
|
|
|
|
|
|
|
|
|
> Show and change EXIF information in JPEG files.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://manned.org/exif>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Show all recognized EXIF information in an image:
|
|
|
|
|
|
|
|
|
|
`exif {{path/to/image.jpg}}`
|
|
|
|
|
|
|
|
|
|
- Show a table listing known EXIF tags and whether each one exists in an image:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`exif {{[-l|--list-tags]}} --no-fixup {{path/to/image.jpg}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
- Extract the image thumbnail into a separate file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`exif {{[-e|--extract-thumbnail]}} {{[-o|--output]}} {{path/to/thumbnail.jpg}} {{path/to/image.jpg}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Show the raw contents of the "Model" tag in the given image:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`exif --ifd {{0}} {{[-t|--tag]}} "Model" {{[-m|--machine-readable]}} {{path/to/image.jpg}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Change the value of the "Artist" tag to John Smith and save to `new.jpg`:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`exif {{[-o|--output]}} {{path/to/new.jpg}} --ifd {{0}} {{[-t|--tag]}} "Artist" --set-value "John Smith" --no-fixup {{path/to/image.jpg}}`
|