Created
July 20, 2010 06:52
-
-
Save timriley/482620 to your computer and use it in GitHub Desktop.
Convert PNGs to JPGs
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
for file in `ls *.png`; do | |
newfile=`echo $file | sed -e 's/\.png$/\.jpg/'` | |
echo "converting: $file -> $newfile" | |
convert $file -quality 70 $newfile | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment