Created
May 11, 2015 19:38
-
-
Save doismellburning/76aa10326a8a2a3cb64c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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