Created
July 26, 2020 21:24
-
-
Save nasyxx/a213b63849b2ad8ca42cc207ba2e1cc2 to your computer and use it in GitHub Desktop.
macOS Screen Shot with you name on it.
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 | |
/usr/sbin/screencapture -i /tmp/ss.png | |
SSF=$(date +"Screen Shot %Y-%m-%d at %r.png") | |
W="$(/Users/Nasy/.macports/bin/identify -format "%w" /tmp/ss.png)" | |
H="$(/Users/Nasy/.macports/bin/identify -format "%h" /tmp/ss.png)" | |
C="#A7FF83" | |
/Users/Nasy/.macports/bin/convert \ | |
/tmp/ss.png \ | |
\( -background none -fill $C -font "AppleChancery" -pointsize $((W/30)) -gravity center label:"Nasy" -trim +repage \) \ | |
\( -clone 1 -background black -shadow 80x25+0+0 \) \ | |
\( -clone 1 -clone 2 +swap -background none -layers merge +repage \) \ | |
-delete 1,2 \ | |
-gravity southeast -compose over -composite \ | |
\( -clone 0 -background $C -shadow 80x50+0+0 \) \ | |
-reverse -background none -layers merge +repage \ | |
"/Users/Nasy/Documents/Screenshots/$SSF" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment