Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
linux/exif Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# exif
> Show and change EXIF information in JPEG files.
> More information: <https://github.com/libexif/exif/>.
- 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:
`exif --list-tags --no-fixup {{image.jpg}}`
- Extract the image thumbnail into the file `thumbnail.jpg`:
`exif --extract-thumbnail --output={{thumbnail.jpg}} {{image.jpg}}`
- Show the raw contents of the "Model" tag in the given image:
`exif --ifd={{0}} --tag={{Model}} --machine-readable {{image.jpg}}`
- Change the value of the "Artist" tag to John Smith and save to `new.jpg`:
`exif --output={{new.jpg}} --ifd={{0}} --tag="{{Artist}}" --set-value="{{John Smith}}" --no-fixup {{image.jpg}}`