Skip to content

Instantly share code, notes, and snippets.

@timriley
Created July 20, 2010 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timriley/482620 to your computer and use it in GitHub Desktop.
Save timriley/482620 to your computer and use it in GitHub Desktop.
Convert PNGs to JPGs
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