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.
Founder / Fractional CTO

Nicholas Nadeau is a fractional CTO empowering startups with next-gen technology expertise, and a passion for driving corporate innovation. Stay informed on cutting-edge hard tech trends - subscribe to my newsletter. Ready to innovate? Discover my services and accelerate your growth.