How to convert CR2 to JPG or PNG?












26















I need to convert a lot of CR2 photos to either JPG or PNG, no editing. How to do this?










share|improve this question





























    26















    I need to convert a lot of CR2 photos to either JPG or PNG, no editing. How to do this?










    share|improve this question



























      26












      26








      26


      8






      I need to convert a lot of CR2 photos to either JPG or PNG, no editing. How to do this?










      share|improve this question
















      I need to convert a lot of CR2 photos to either JPG or PNG, no editing. How to do this?







      image-processing






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 14 '14 at 23:25









      Braiam

      51.6k20136220




      51.6k20136220










      asked Jun 14 '14 at 21:12









      user284848user284848

      138135




      138135






















          6 Answers
          6






          active

          oldest

          votes


















          13














          Ufraw



          you can convert .cr2 to .jpeg by ufraw.



          sudo apt-get install ufraw


          Right click on the file and select open with ufraw.



          ** You can also import them to Gimp with gimp-ufraw and then export as .png or .jpeg.



          sudo apt-get install gimp-ufraw





          share|improve this answer































            41














            I'll go a different route... Use ufraw-batch not 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


            See ufraw-batch --help and man ufraw-batch for more info.






            share|improve this answer



















            • 1





              ufraw-batch is awesome!

              – jemiloii
              Sep 13 '16 at 20:00











            • ufraw-batch --out-type png $(ls IMG_93{44..99}* 2>| cat)

              – smac89
              Feb 19 '18 at 0:07






            • 1





              In some cases, ufraw-batch leads to a segmentation fault. It will successfully develop one RAW file, and then it stops. See bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 for further information.

              – user258532
              Sep 14 '18 at 12:13



















            2














            For another alternative, use mogrify.




            mogrify -format PNG *.CR2







            share|improve this answer



















            • 1





              it should be stated that mogrify is part of imagemagick, which is available at imagemagick.org. however, mogrify uses ufraw-batch in the background, so might as well use that directly

              – dominik andreas
              Apr 22 '18 at 9:29






            • 1





              +1 as mogrify circumvents the bug in ufraw-batch that leads to a segmentation fault (asper Sptember 2018)

              – Bruni
              Sep 23 '18 at 12:30



















            1














            Try nconvert



            As command line tool
            OR
            xnconvert as GUI tool






            share|improve this answer



















            • 5





              Please explain how to use xnconvert.

              – NGRhodes
              Jun 14 '14 at 22:10











            • This is now a Famous Question. We do not like these sort of answers. This should be deleted.

              – ubashu
              Aug 2 '16 at 3:15











            • ./nconvert -out jpeg -truecolors /path/to/images/folder/*.CR2

              – Sagar Nikam
              Jan 15 at 10:47



















            1














            You could also program a simple loop in the console.



            For example (using the fish console), and assuming the active directory only has RAW files.



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


            or



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


            I use ufraw-batch that way because it often leads to an error, see https://bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 .






            share|improve this answer































              0














              Use:



              exiftool -Composite:PreviewImage -b photo.CR2 > photo.jpg


              Longer answer:



              ufraw-batch conversion quality is very bad. Imagemagick uses ufraw under the hoods (unfortunately). dcraw is better, but still not great. The best solution I found out was to use exif to extract PreviewImage metadata. I believe that's generated by the camera itself.



              Ref: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=6936&sid=9548c421f1bd69f192e632d06ca03dff&start=30#p130949






              share|improve this answer























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "89"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f483379%2fhow-to-convert-cr2-to-jpg-or-png%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                6 Answers
                6






                active

                oldest

                votes








                6 Answers
                6






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                13














                Ufraw



                you can convert .cr2 to .jpeg by ufraw.



                sudo apt-get install ufraw


                Right click on the file and select open with ufraw.



                ** You can also import them to Gimp with gimp-ufraw and then export as .png or .jpeg.



                sudo apt-get install gimp-ufraw





                share|improve this answer




























                  13














                  Ufraw



                  you can convert .cr2 to .jpeg by ufraw.



                  sudo apt-get install ufraw


                  Right click on the file and select open with ufraw.



                  ** You can also import them to Gimp with gimp-ufraw and then export as .png or .jpeg.



                  sudo apt-get install gimp-ufraw





                  share|improve this answer


























                    13












                    13








                    13







                    Ufraw



                    you can convert .cr2 to .jpeg by ufraw.



                    sudo apt-get install ufraw


                    Right click on the file and select open with ufraw.



                    ** You can also import them to Gimp with gimp-ufraw and then export as .png or .jpeg.



                    sudo apt-get install gimp-ufraw





                    share|improve this answer













                    Ufraw



                    you can convert .cr2 to .jpeg by ufraw.



                    sudo apt-get install ufraw


                    Right click on the file and select open with ufraw.



                    ** You can also import them to Gimp with gimp-ufraw and then export as .png or .jpeg.



                    sudo apt-get install gimp-ufraw






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jun 14 '14 at 21:19







                    user224082
































                        41














                        I'll go a different route... Use ufraw-batch not 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


                        See ufraw-batch --help and man ufraw-batch for more info.






                        share|improve this answer



















                        • 1





                          ufraw-batch is awesome!

                          – jemiloii
                          Sep 13 '16 at 20:00











                        • ufraw-batch --out-type png $(ls IMG_93{44..99}* 2>| cat)

                          – smac89
                          Feb 19 '18 at 0:07






                        • 1





                          In some cases, ufraw-batch leads to a segmentation fault. It will successfully develop one RAW file, and then it stops. See bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 for further information.

                          – user258532
                          Sep 14 '18 at 12:13
















                        41














                        I'll go a different route... Use ufraw-batch not 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


                        See ufraw-batch --help and man ufraw-batch for more info.






                        share|improve this answer



















                        • 1





                          ufraw-batch is awesome!

                          – jemiloii
                          Sep 13 '16 at 20:00











                        • ufraw-batch --out-type png $(ls IMG_93{44..99}* 2>| cat)

                          – smac89
                          Feb 19 '18 at 0:07






                        • 1





                          In some cases, ufraw-batch leads to a segmentation fault. It will successfully develop one RAW file, and then it stops. See bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 for further information.

                          – user258532
                          Sep 14 '18 at 12:13














                        41












                        41








                        41







                        I'll go a different route... Use ufraw-batch not 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


                        See ufraw-batch --help and man ufraw-batch for more info.






                        share|improve this answer













                        I'll go a different route... Use ufraw-batch not 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


                        See ufraw-batch --help and man ufraw-batch for more info.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Apr 5 '15 at 21:49









                        Evan CarrollEvan Carroll

                        4,719103466




                        4,719103466








                        • 1





                          ufraw-batch is awesome!

                          – jemiloii
                          Sep 13 '16 at 20:00











                        • ufraw-batch --out-type png $(ls IMG_93{44..99}* 2>| cat)

                          – smac89
                          Feb 19 '18 at 0:07






                        • 1





                          In some cases, ufraw-batch leads to a segmentation fault. It will successfully develop one RAW file, and then it stops. See bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 for further information.

                          – user258532
                          Sep 14 '18 at 12:13














                        • 1





                          ufraw-batch is awesome!

                          – jemiloii
                          Sep 13 '16 at 20:00











                        • ufraw-batch --out-type png $(ls IMG_93{44..99}* 2>| cat)

                          – smac89
                          Feb 19 '18 at 0:07






                        • 1





                          In some cases, ufraw-batch leads to a segmentation fault. It will successfully develop one RAW file, and then it stops. See bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 for further information.

                          – user258532
                          Sep 14 '18 at 12:13








                        1




                        1





                        ufraw-batch is awesome!

                        – jemiloii
                        Sep 13 '16 at 20:00





                        ufraw-batch is awesome!

                        – jemiloii
                        Sep 13 '16 at 20:00













                        ufraw-batch --out-type png $(ls IMG_93{44..99}* 2>| cat)

                        – smac89
                        Feb 19 '18 at 0:07





                        ufraw-batch --out-type png $(ls IMG_93{44..99}* 2>| cat)

                        – smac89
                        Feb 19 '18 at 0:07




                        1




                        1





                        In some cases, ufraw-batch leads to a segmentation fault. It will successfully develop one RAW file, and then it stops. See bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 for further information.

                        – user258532
                        Sep 14 '18 at 12:13





                        In some cases, ufraw-batch leads to a segmentation fault. It will successfully develop one RAW file, and then it stops. See bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 for further information.

                        – user258532
                        Sep 14 '18 at 12:13











                        2














                        For another alternative, use mogrify.




                        mogrify -format PNG *.CR2







                        share|improve this answer



















                        • 1





                          it should be stated that mogrify is part of imagemagick, which is available at imagemagick.org. however, mogrify uses ufraw-batch in the background, so might as well use that directly

                          – dominik andreas
                          Apr 22 '18 at 9:29






                        • 1





                          +1 as mogrify circumvents the bug in ufraw-batch that leads to a segmentation fault (asper Sptember 2018)

                          – Bruni
                          Sep 23 '18 at 12:30
















                        2














                        For another alternative, use mogrify.




                        mogrify -format PNG *.CR2







                        share|improve this answer



















                        • 1





                          it should be stated that mogrify is part of imagemagick, which is available at imagemagick.org. however, mogrify uses ufraw-batch in the background, so might as well use that directly

                          – dominik andreas
                          Apr 22 '18 at 9:29






                        • 1





                          +1 as mogrify circumvents the bug in ufraw-batch that leads to a segmentation fault (asper Sptember 2018)

                          – Bruni
                          Sep 23 '18 at 12:30














                        2












                        2








                        2







                        For another alternative, use mogrify.




                        mogrify -format PNG *.CR2







                        share|improve this answer













                        For another alternative, use mogrify.




                        mogrify -format PNG *.CR2








                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Sep 27 '17 at 22:35









                        qreba47jhqb4e3lstrujvvdxqreba47jhqb4e3lstrujvvdx

                        86110




                        86110








                        • 1





                          it should be stated that mogrify is part of imagemagick, which is available at imagemagick.org. however, mogrify uses ufraw-batch in the background, so might as well use that directly

                          – dominik andreas
                          Apr 22 '18 at 9:29






                        • 1





                          +1 as mogrify circumvents the bug in ufraw-batch that leads to a segmentation fault (asper Sptember 2018)

                          – Bruni
                          Sep 23 '18 at 12:30














                        • 1





                          it should be stated that mogrify is part of imagemagick, which is available at imagemagick.org. however, mogrify uses ufraw-batch in the background, so might as well use that directly

                          – dominik andreas
                          Apr 22 '18 at 9:29






                        • 1





                          +1 as mogrify circumvents the bug in ufraw-batch that leads to a segmentation fault (asper Sptember 2018)

                          – Bruni
                          Sep 23 '18 at 12:30








                        1




                        1





                        it should be stated that mogrify is part of imagemagick, which is available at imagemagick.org. however, mogrify uses ufraw-batch in the background, so might as well use that directly

                        – dominik andreas
                        Apr 22 '18 at 9:29





                        it should be stated that mogrify is part of imagemagick, which is available at imagemagick.org. however, mogrify uses ufraw-batch in the background, so might as well use that directly

                        – dominik andreas
                        Apr 22 '18 at 9:29




                        1




                        1





                        +1 as mogrify circumvents the bug in ufraw-batch that leads to a segmentation fault (asper Sptember 2018)

                        – Bruni
                        Sep 23 '18 at 12:30





                        +1 as mogrify circumvents the bug in ufraw-batch that leads to a segmentation fault (asper Sptember 2018)

                        – Bruni
                        Sep 23 '18 at 12:30











                        1














                        Try nconvert



                        As command line tool
                        OR
                        xnconvert as GUI tool






                        share|improve this answer



















                        • 5





                          Please explain how to use xnconvert.

                          – NGRhodes
                          Jun 14 '14 at 22:10











                        • This is now a Famous Question. We do not like these sort of answers. This should be deleted.

                          – ubashu
                          Aug 2 '16 at 3:15











                        • ./nconvert -out jpeg -truecolors /path/to/images/folder/*.CR2

                          – Sagar Nikam
                          Jan 15 at 10:47
















                        1














                        Try nconvert



                        As command line tool
                        OR
                        xnconvert as GUI tool






                        share|improve this answer



















                        • 5





                          Please explain how to use xnconvert.

                          – NGRhodes
                          Jun 14 '14 at 22:10











                        • This is now a Famous Question. We do not like these sort of answers. This should be deleted.

                          – ubashu
                          Aug 2 '16 at 3:15











                        • ./nconvert -out jpeg -truecolors /path/to/images/folder/*.CR2

                          – Sagar Nikam
                          Jan 15 at 10:47














                        1












                        1








                        1







                        Try nconvert



                        As command line tool
                        OR
                        xnconvert as GUI tool






                        share|improve this answer













                        Try nconvert



                        As command line tool
                        OR
                        xnconvert as GUI tool







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Jun 14 '14 at 22:08









                        YanesYanes

                        291




                        291








                        • 5





                          Please explain how to use xnconvert.

                          – NGRhodes
                          Jun 14 '14 at 22:10











                        • This is now a Famous Question. We do not like these sort of answers. This should be deleted.

                          – ubashu
                          Aug 2 '16 at 3:15











                        • ./nconvert -out jpeg -truecolors /path/to/images/folder/*.CR2

                          – Sagar Nikam
                          Jan 15 at 10:47














                        • 5





                          Please explain how to use xnconvert.

                          – NGRhodes
                          Jun 14 '14 at 22:10











                        • This is now a Famous Question. We do not like these sort of answers. This should be deleted.

                          – ubashu
                          Aug 2 '16 at 3:15











                        • ./nconvert -out jpeg -truecolors /path/to/images/folder/*.CR2

                          – Sagar Nikam
                          Jan 15 at 10:47








                        5




                        5





                        Please explain how to use xnconvert.

                        – NGRhodes
                        Jun 14 '14 at 22:10





                        Please explain how to use xnconvert.

                        – NGRhodes
                        Jun 14 '14 at 22:10













                        This is now a Famous Question. We do not like these sort of answers. This should be deleted.

                        – ubashu
                        Aug 2 '16 at 3:15





                        This is now a Famous Question. We do not like these sort of answers. This should be deleted.

                        – ubashu
                        Aug 2 '16 at 3:15













                        ./nconvert -out jpeg -truecolors /path/to/images/folder/*.CR2

                        – Sagar Nikam
                        Jan 15 at 10:47





                        ./nconvert -out jpeg -truecolors /path/to/images/folder/*.CR2

                        – Sagar Nikam
                        Jan 15 at 10:47











                        1














                        You could also program a simple loop in the console.



                        For example (using the fish console), and assuming the active directory only has RAW files.



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


                        or



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


                        I use ufraw-batch that way because it often leads to an error, see https://bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 .






                        share|improve this answer




























                          1














                          You could also program a simple loop in the console.



                          For example (using the fish console), and assuming the active directory only has RAW files.



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


                          or



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


                          I use ufraw-batch that way because it often leads to an error, see https://bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 .






                          share|improve this answer


























                            1












                            1








                            1







                            You could also program a simple loop in the console.



                            For example (using the fish console), and assuming the active directory only has RAW files.



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


                            or



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


                            I use ufraw-batch that way because it often leads to an error, see https://bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 .






                            share|improve this answer













                            You could also program a simple loop in the console.



                            For example (using the fish console), and assuming the active directory only has RAW files.



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


                            or



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


                            I use ufraw-batch that way because it often leads to an error, see https://bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855 .







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Sep 14 '18 at 12:17









                            user258532user258532

                            637818




                            637818























                                0














                                Use:



                                exiftool -Composite:PreviewImage -b photo.CR2 > photo.jpg


                                Longer answer:



                                ufraw-batch conversion quality is very bad. Imagemagick uses ufraw under the hoods (unfortunately). dcraw is better, but still not great. The best solution I found out was to use exif to extract PreviewImage metadata. I believe that's generated by the camera itself.



                                Ref: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=6936&sid=9548c421f1bd69f192e632d06ca03dff&start=30#p130949






                                share|improve this answer




























                                  0














                                  Use:



                                  exiftool -Composite:PreviewImage -b photo.CR2 > photo.jpg


                                  Longer answer:



                                  ufraw-batch conversion quality is very bad. Imagemagick uses ufraw under the hoods (unfortunately). dcraw is better, but still not great. The best solution I found out was to use exif to extract PreviewImage metadata. I believe that's generated by the camera itself.



                                  Ref: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=6936&sid=9548c421f1bd69f192e632d06ca03dff&start=30#p130949






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    Use:



                                    exiftool -Composite:PreviewImage -b photo.CR2 > photo.jpg


                                    Longer answer:



                                    ufraw-batch conversion quality is very bad. Imagemagick uses ufraw under the hoods (unfortunately). dcraw is better, but still not great. The best solution I found out was to use exif to extract PreviewImage metadata. I believe that's generated by the camera itself.



                                    Ref: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=6936&sid=9548c421f1bd69f192e632d06ca03dff&start=30#p130949






                                    share|improve this answer













                                    Use:



                                    exiftool -Composite:PreviewImage -b photo.CR2 > photo.jpg


                                    Longer answer:



                                    ufraw-batch conversion quality is very bad. Imagemagick uses ufraw under the hoods (unfortunately). dcraw is better, but still not great. The best solution I found out was to use exif to extract PreviewImage metadata. I believe that's generated by the camera itself.



                                    Ref: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=6936&sid=9548c421f1bd69f192e632d06ca03dff&start=30#p130949







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jan 6 at 19:51









                                    Rafael XavierRafael Xavier

                                    456149




                                    456149






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Ask Ubuntu!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f483379%2fhow-to-convert-cr2-to-jpg-or-png%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Human spaceflight

                                        Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                                        張江高科駅