Created
September 5, 2022 14:42
-
-
Save az0mb13/69ec30b4749d7af242cfe2b9a43d898c to your computer and use it in GitHub Desktop.
Flameshot hack for rounded corners and shadows
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 | |
flameshot gui --raw >> /home/zombie/Pictures/flameshot/screenshot.png | |
convert /home/zombie/Pictures/flameshot/screenshot.png \( +clone -alpha extract -draw 'fill black polygon 0,0 0,5 5,0 fill white circle 5,5 5,0' \( +clone -flip \) -compose Multiply -composite \( +clone -flop \) -compose Multiply -composite \) -alpha off -compose CopyOpacity -composite /home/zombie/Pictures/flameshot/screenshot.png | |
convert /home/zombie/Pictures/flameshot/screenshot.png \( +clone -background black -shadow 75x10+0+0 \) +swap -bordercolor none -border 10 -background none -layers merge +repage /home/zombie/Pictures/flameshot/shadow.png | |
xclip -selection clipboard -t image/png -i /home/zombie/Pictures/flameshot/shadow.png | |
rm /home/zombie/Pictures/flameshot/screenshot.png /home/zombie/Pictures/flameshot/shadow.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment