Skip to content

Instantly share code, notes, and snippets.

@kkroesch
Last active May 17, 2024 11:21
Show Gist options
  • Save kkroesch/7b3d004af46d8bc94e108330239a2adf to your computer and use it in GitHub Desktop.
Save kkroesch/7b3d004af46d8bc94e108330239a2adf to your computer and use it in GitHub Desktop.
Manipulate EXIF Headers
exif --ifd=0 --tag=0x8298 --set-value='(c) 2010 Karsten Kroesch' campground.jpg
exif --ifd=0 --tag=0x010e --set-value='Campground Mojave Desert' -o campground.jpg campground.jpg.modified.jpeg
**Copyright Watermark:**
convert desert.jpg -fill white  -undercolor '#00000080'  -gravity South -annotate +0+5 ' (c) 2010 Karsten Kroesch ' desert.jpg
**Border:**
convert teddybearcactus.jpg -bordercolor white -border 25x25 teddy.jpg
convert teddy.jpg -bordercolor Black -border 1x1 teddy.jpg
$TITLE=$(exif -m --ifd=0 --tag=0x010e campground.jpg)
convert desert.jpg -gravity South -annotate +0+5 $TITLE desert.jpg
**Thumbnails**
mkdir thumbs & mogrify  -format gif -path thumbs -thumbnail 100x100 *.jpg
convert thumbs_joshua.jpg -bordercolor snow -background black +polaroid joshua.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment