(Quite handy - and you can even go ahead to shrink the two commands to one). for A in *.jpg; do convert $A $A.png; done rename -v 's/\.jpg.png$/.png/' *.jpg.png This, on GNU/Linux, with [:http://www.imagemagick.org/|imagemagick].
for A in *.jpg; do convert $A $A.png; done rename -v 's/\.jpg.png$/.png/' *.jpg.png