Created
July 7, 2019 08:20
-
-
Save Roald87/0cb6fad02448587c18d771f8ec6d945a to your computer and use it in GitHub Desktop.
Bash alias which puts a white border plus a shadow around an image using ImageMagick
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
shadow() { | |
mogrify -trim "$1" | |
mogrify -border 10 -bordercolor white "$1" | |
convert "$1" \( +clone -background black -shadow 40x8+0+0 \) +swap -background white -layers merge +repage "$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment