From ddcb5853765f37aa025317961118338ec3078278 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 26 Sep 2015 16:46:25 -0400 Subject: [PATCH] Add 2png script --- bin/2png | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/2png 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