Skip to content

Instantly share code, notes, and snippets.

@subwiz
Last active July 28, 2017 06:06
Show Gist options
  • Save subwiz/056549ff52084780ffe96231ca25ff1a to your computer and use it in GitHub Desktop.
Save subwiz/056549ff52084780ffe96231ca25ff1a to your computer and use it in GitHub Desktop.
Imagic Magick script to add border to images. To install Imagic Magick: `brew update && brew install imagemagick`.
#!/bin/sh
for i in "$@"; do
echo Processing "$i" '=>' "x-$i"
convert "$i" -shave 5x5 -bordercolor black -border 5 "x-$i"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment