helm/bin/2png

14 lines
247 B
Plaintext
Raw Normal View History

2016-11-21 20:58:53 -08:00
#!/usr/bin/env bash
2015-09-26 13:46:25 -07:00
# Creates pngs from PSD (and AI) files. Requires imagemagick (and ghostscript
# for ai files)
# Usage: 2png *.{psd,ai}
2016-11-21 20:58:53 -08:00
[[ -d _png ]] || mkdir -p _png;
2015-09-26 13:46:25 -07:00
for f in $1
do
2015-09-26 13:46:25 -07:00
convert -resize 1200x1200 ${f}[0] _png/${f}.png
done