This forum has been archived. All content is frozen. Please use KDE Discuss instead.

RAW file processing for Canon EOS 550D

Tags: None
(comma "," separated)
lowflyerUK
Registered Member
Posts
3
Karma
0
OS
Hi!

Thanks for the great work on Digikam etc!

Please could you give me an indication of when the RAW files from my lovely new Canon EOS 550D will be supported? I see that a new version of dcraw.c is around at http://sourceforge.net/tracker/index.php?func=detail&aid=2970192&group_id=127649&atid=709089 that already supports the 550D.

Thanks again,

lowflyer
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would suggest filing a bug report at bugs.kde.org about this, so that the Digikam developers are aware of this and can update libkdcraw.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
lowflyerUK
Registered Member
Posts
3
Karma
0
OS
Here is a recipe that worked for me - digikam now opens Canon RAW files ( .cr2) from my EOS 550D in Image Editor :-)

Just one file needs modifying from svn version of digikam that I downloaded on 18th March 2010 as described at http://www.digikam.org/drupal/download?q=download/KDE4

Download the latest kdegraphics libs:

Code: Select all
# svn co -N svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics
# cd kdegraphics
# svn up libs
# svn up cmake


Edit the file kdegraphics/libs/libkdcraw/libraw/internal/dcraw_common.cpp at line 6958 by inserting the following snippet (from the latest dcraw.c from http://sourceforge.net/tracker/index.ph ... tid=709089) :

Code: Select all
 } else if (is_canon && raw_width == 1336) {
    top_margin = 51;
    left_margin = 142;
    raw_width = width *= 4;
    if (unique_id == 0x80000270)
      adobe_coeff ("Canon","EOS 550D");
    goto canon_cr2;


so that it now reads:

Code: Select all
  } else if (is_canon && raw_width == 1280) {
    height -= top_margin = 45;
    left_margin = 142;
    raw_width *= 4;
    width = 4916;
 } else if (is_canon && raw_width == 1336) {
    top_margin = 51;
    left_margin = 142;
    raw_width = width *= 4;
    if (unique_id == 0x80000270)
      adobe_coeff ("Canon","EOS 550D");
    goto canon_cr2;
  } else if (is_canon && raw_width == 1340) {
    top_margin = 51;
    left_margin = 158;
    raw_width = width *= 4;
    goto canon_cr2;


Build kdegraphics:

Code: Select all
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
# make
# sudo make install


Download and build the latest digiKam and Kipi-plugins:

Code: Select all
# cd ../..
# svn co -N svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics
# cd graphics
# svn up digikam
# svn up kipi-plugins
# svn up cmake
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
# make
# sudo make install


Then restart digikam! I hope it works for you!

Lowflyer
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you filed the bug at bugs.kde.org so the Digikam developers can update the svn version?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
lowflyerUK
Registered Member
Posts
3
Karma
0
OS
Yes - I commented on a previous request to update libkdcraw at https://bugs.kde.org/show_bug.cgi?id=225853


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell