How to convert CR2 to JPG or PNG?
I need to convert a lot of CR2 photos to either JPG or PNG, no editing. How to do this?
image-processing
add a comment |
I need to convert a lot of CR2 photos to either JPG or PNG, no editing. How to do this?
image-processing
add a comment |
I need to convert a lot of CR2 photos to either JPG or PNG, no editing. How to do this?
image-processing
I need to convert a lot of CR2 photos to either JPG or PNG, no editing. How to do this?
image-processing
image-processing
edited Jun 14 '14 at 23:25
Braiam
51.6k20136220
51.6k20136220
asked Jun 14 '14 at 21:12
user284848user284848
138135
138135
add a comment |
add a comment |
6 Answers
6
active
oldest
votes
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
add a comment |
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.
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
add a comment |
For another alternative, use mogrify
.
mogrify -format PNG *.CR2
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
add a comment |
Try nconvert
As command line tool
OR
xnconvert as GUI tool
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
add a comment |
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 .
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Jun 14 '14 at 21:19
user224082
add a comment |
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
For another alternative, use mogrify
.
mogrify -format PNG *.CR2
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
add a comment |
For another alternative, use mogrify
.
mogrify -format PNG *.CR2
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
add a comment |
For another alternative, use mogrify
.
mogrify -format PNG *.CR2
For another alternative, use mogrify
.
mogrify -format PNG *.CR2
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
add a comment |
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
add a comment |
Try nconvert
As command line tool
OR
xnconvert as GUI tool
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
add a comment |
Try nconvert
As command line tool
OR
xnconvert as GUI tool
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
add a comment |
Try nconvert
As command line tool
OR
xnconvert as GUI tool
Try nconvert
As command line tool
OR
xnconvert as GUI tool
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
add a comment |
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
add a comment |
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 .
add a comment |
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 .
add a comment |
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 .
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 .
answered Sep 14 '18 at 12:17
user258532user258532
637818
637818
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Jan 6 at 19:51
Rafael XavierRafael Xavier
456149
456149
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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