Skip to content

Instantly share code, notes, and snippets.

@db0company
Created April 18, 2016 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save db0company/92c56d09c955bea1b3ef044a9539f14c to your computer and use it in GitHub Desktop.
Save db0company/92c56d09c955bea1b3ef044a9539f14c to your computer and use it in GitHub Desktop.
Sukutomo: Add the white halo around background and resize them to use on the homepage
# download all image in current folder, copy hover in /tmp/hover
for f in *\ *; do mv "$f" "${f// /_}"; done # remove space in filenames
mkdir small
mkdir large
i=0; for img in *.png; do composite -gravity Center /tmp/hover.png $img small/background$i.png; i=$((i+1)); done
cd small
for img in *.png; do convert $img -resize 1500x1500 ../large/$img; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment