for file in *.png; do
  convert "$file" -quality 90 "${file%.png}.jpg"
done
