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.
Project Director

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

Related