Skip to content

Instantly share code, notes, and snippets.

@gustavi
Last active March 16, 2017 16:39
Show Gist options
  • Save gustavi/df1ddc52d1add57edf26da0d2894df64 to your computer and use it in GitHub Desktop.
Save gustavi/df1ddc52d1add57edf26da0d2894df64 to your computer and use it in GitHub Desktop.
Convert PSD to JPG/PNG files
#!/bin/bash
for img in *.{psd,PSD}
do
imgname=`echo $img|cut -f1 -d.`
echo $imgname
mkdir $imgname
mkdir $imgname/png
mkdir $imgname/jpg
convert $img $imgname/jpg/$imgname.jpg
convert $img $imgname/png/$imgname.png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment