Hello,

for those who use old Canon DSLRs like EOS 1D, or 1Ds and have problems with the RAW files with .TIF extension, because they are not recognized as RAW files, here is the patch that adds the necessary magic numbers.

The problem with embedded JPEG preview still exists, but can be worked around with the "half raw preview" enabled option...

Greets
toalabaer
diff --git a/src/common/imageio.c b/src/common/imageio.c
index 5227398..8e14516 100644
--- a/src/common/imageio.c
+++ b/src/common/imageio.c
@@ -377,6 +377,8 @@
                                                                                 // additional magic number.
                                                                                 // must come before tiff as an
                                                                                 // exclusion
+  /* canon TIF */
+  0x01, 0x00, 0x0a, 0x4d, 0x4d, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x10, 0xba, 0xb0, // Canon RAW format with TIF Extension (i.e. EOS-1Ds)
 
   /* tiff image, intel */
   0x00, 0x00, 0x04, 0x4d, 0x4d, 0x00, 0x2a,
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to