ufraw and Canon 450D (Rebel XSi)

Yesterday I got my new amazing Canon 450D camera. But very soon I was really disappointed when I found the fact that my lovely ufraw can not handle new Canon CR2 (raw) images correctly.
As far as I know, ufraw using dcraw program for raw images conversion. More, last dcraw version 8.86 works good with my files. So the problem lays in the old version of dcraw used by ufraw. In right, the most up to date ufraw distribution contains dcraw.cc version 8.80. So the problem would be solved by patching dcraw.cc.
After some digging I found few lines in newest dcraw.c file related to Canon 450D.
And here we go with patch, which help us to solve the problem!


*** dcraw.cc.orig 2007-11-12 11:47:31.000000000 -0800
--- dcraw.cc 2008-04-26 15:10:41.000000000 -0700
***************
*** 5943,5948 ****
--- 5943,5950 ----
{ 6018,-617,-965,-8645,15881,2975,-1530,1719,7642 } },
{ "Canon EOS 400D", 0,
{ 7054,-1501,-990,-8156,15544,2812,-1278,1414,7796 } },
+ { "Canon EOS 450D", 0,
+ { 5784,-262,-821,-7539,15064,2672,-1982,2681,7427 } },
{ "Canon EOS-1Ds Mark II", 0,
{ 6517,-602,-867,-8180,15926,2378,-1618,1771,7633 } },
{ "Canon EOS-1D Mark II N", 0,
***************
*** 6718,6723 ****
--- 6720,6732 ----
width = 4032;
top_margin = 12;
left_margin = 48;
+ } else if (is_canon && raw_width == 4312) {
+ top_margin = 18;
+ left_margin = 22;
+ height -= 2;
+ maximum = 0x390d;
+ if (unique_id == 0x80000176)
+ adobe_coeff ("Canon","EOS 450D");
+ goto canon_cr2;
} else if (is_canon && raw_width == 4476) {
top_margin = 34;
left_margin = 90;

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Great, been looking f

Great, been looking for a fix for this issue for a while. How do I apply the fix, patch then compile from source or can I patch the installed version?

Thanks.

Patch

Yes, You have to patch the source, the compile it.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.