helm/bin/2png.sh
Henrik Lissner bf2c16dac3 Append .sh to bin scripts
This help distinguish personal scripts from binaries in $PATH
2016-10-19 21:38:58 +02:00

14 lines
248 B
Bash
Executable file

#!/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