diff --git a/bin/2png b/bin/2png new file mode 100755 index 00000000..fa55fa83 --- /dev/null +++ b/bin/2png @@ -0,0 +1,12 @@ +#!/usr/bin/env zsh + +# Creates pngs from PSD (and AI) files. Requires imagemagick (and ghostscript +# for ai files) + +# Usage: 2png *.{psd,ai} + +[ ! -d _png ] && mkdir -p _png; + +for f in $1; do + convert -resize 1200x1200 ${f}[0] _png/${f}.png +done