Skip to content

Instantly share code, notes, and snippets.

Roald87

Block or report user

Report or block Roald87

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Roald87
Roald87 / shadow
Created Jul 7, 2019
Bash alias which puts a white border plus a shadow around an image using ImageMagick
View shadow
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"
}
You can’t perform that action at this time.