Last active
March 16, 2017 16:39
-
-
Save gustavi/df1ddc52d1add57edf26da0d2894df64 to your computer and use it in GitHub Desktop.
Convert PSD to JPG/PNG files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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