Skip to content

Instantly share code, notes, and snippets.

@doismellburning
Created May 11, 2015 19:38
Show Gist options
  • Save doismellburning/76aa10326a8a2a3cb64c to your computer and use it in GitHub Desktop.
Save doismellburning/76aa10326a8a2a3cb64c to your computer and use it in GitHub Desktop.
#!/bin/bash
INFILE=$1
TEXT=$2
OUTFILE=out.jpg
# Manual hackery :(
WIDTH=400
HEIGHT=75
convert -size ${WIDTH}x${HEIGHT} xc:none -pointsize 20 -gravity center \
-fill grey \
-draw "text 0,0 '$TEXT'" \
stamp.png
composite -dissolve 50 -tile stamp.png "$INFILE" "$OUTFILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment