Convert Images in a Directory

A simple bash for-loop for convert many images at once.

for i in *.png ; do convert "$i" "${i%.*}.jpg" ; done
  • convert: convert between image formats using ImageMagick
Nicholas Nadeau, Ph.D., P.Eng.
Nicholas Nadeau, Ph.D., P.Eng.
CTO

Nicholas Nadeau is the CTO at Halodi Robotics, leading their mission of bringing safe and capable humanoid robots to everyone.