Skip to content

Instantly share code, notes, and snippets.

@Roald87
Created July 7, 2019 08:20
Show Gist options
  • Save Roald87/0cb6fad02448587c18d771f8ec6d945a to your computer and use it in GitHub Desktop.
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
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