# shows you have 8 hardware threads, this will spawn 8 simultaneous `convert` # (hyperthreaded 'processors', or 'cores') your computer has. # CPU threads, since `nproc` returns the number of hardware threads # - Note: `-P '$(nproc)'` says to spawn as many parallel processes as you have # strip the extension (`convert` won't work if you don't do this first, for someįor file in *.cr2 do mv - '$file' '$' done Here is how I did that as fast as possible, using all 8 of my CPU cores at once: cd path/to/all/of/your/cr2/images In my case, I needed to convert hundreds of images from. Note: if convert won't work, try the fix I mention in my answer here. The original `myimage` image remains intact. cr2 extension from your file (this is required for some reason tif and double-clicked it and my image viewer in Ubuntu 20.04 was able to open it just fine. png! I just renamed the file extension from. tif and then using tools to convert from. jpg images:ĬR2 files appear to be valid TIF files too, so you might also try simply changing the file extension from. Maybe that's what CR stands for?-'Canon Raw'.Īnyway, I just recovered a bunch of them from a corrupted SD card from a digital camera, using ddrescue and photorec (installed by sudo apt install testdisk, and here's how I just converted hundreds of recovered. cr2 files are apparently some kind of Canon digital camera raw format.