I've got a directory with thousands of image files, mostly JPG but some PNG. The files have no extension, they're just numbered. I need to convert all of them to JPG.
Using find I can get a list of all the files with their types, and from that I can use Imagemagick to convert from PNG to JPG by specifying their type:
convert png:10020 jpg:10020.jpg
But I'd like to do this as a batch across all the files. How can I pipe the output of find and convert all the PNG files to JPG?