如何将CR2转换为JPG或PNG?

我需要将很多CR2照片转换为JPG或PNG,不需要编辑。 这该怎么做?

Ufraw

你可以通过ufraw将.cr2转换为.jpeg

 sudo apt-get install ufraw 

右键单击该文件,然后选择open with ufraw

**您也可以使用gimp-ufraw将它们导入Gimp,然后导出为.png.jpeg

 sudo apt-get install gimp-ufraw 

我将采用不同的路线…使用ufraw-batch而不是ufraw

 sudo apt-get install ufraw-batch ## This will output (not replace) the file with a new extension. ## foo.CR2 exported to foo.png ufraw-batch --out-type png *.CR2 

有关详细信息,请参阅ufraw-batch --helpman ufraw-batch

另一种选择,使用mogrify

mogrify -format PNG * .CR2

试试nconvert

作为命令行工具OR xnconvert作为GUI工具

您还可以在控制台中编写一个简单的循环。

例如(使用fish控制台),并假设活动目录只有RAW文件。

 set files (ls) for i in $files dcraw $i end 

要么

 set files (ls) for i in $files ufraw-batch --out-type=tif --out-depth $i end 

我这样使用ufraw-batch因为它经常导致错误,请参阅https://bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 。