Add 2png script

This commit is contained in:
Henrik Lissner 2015-09-26 16:46:25 -04:00
parent 2f4861ee9e
commit ddcb585376

12
bin/2png Executable file
View file

@ -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