Created
December 2, 2018 15:40
-
-
Save antonmedv/67fba9a338a2c15708c7e511bf593ef0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
fd frame | while read line; do | |
convert $line \ | |
\( +clone -alpha extract \ | |
-draw 'fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0' \ | |
\( +clone -flip \) -compose Multiply -composite \ | |
\( +clone -flop \) -compose Multiply -composite \ | |
\) -alpha off -compose CopyOpacity -composite $line; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment