chdk

General information

CHDK supports two raw formats: DNG and "CHDK Raw".

Note It is important to understand that the file extension is not the same as the file format. CHDK raws and DNGs are frequently saved with a .CRW or .CR2 extension, but they are NOT in Canon formats that typically use these extensions. In windows, file extensions may be hidden, and the "file type" display by windows is in fact the extension, not the format of the data inside the file.

If you are new to CHDK RAW, please take a look at this : CHDK Forum RAW for Beginners

More good discussion about raw processing may be found in the CHDK RAW subforum

Software

Raw conversion section of the software page


Technical details of CHDK raw

The Frame buffers page describes the layout of RAW data. Individual sensor sizes may be found in platform/<model>/platform_camera.h

From the old FAQ entry, needs sorting and cleaning!

(Note that DNG4PS will copy the EXIF data from the RAW file's corresponding JPG file to the new DNG file. The RAW files themselves do not contain any EXIF-header info until this is done. If you are using some of the new builds of CHDK with features like shutter-speed and aperture overrides then the original JPG EXIF header, from which this data is taken for the DNG RAW file's EXIF-header, may not reflect these new values that are outside of the normal bounds of your Powershot's EXIF information. A small utility was created that allows you to process your JPG files to update appropriate EXIF fields with these non-standard CHDK override shutter-speed, aperture, and ISO values. You can find the latest version of this utility at the new CHDK Forum at the end of this discussion thread Converting CHDK EXIF info to Standard EXIF. Read the full thread on how to install and use it as it also requires the installation of EXIFTool and copying then renaming the main "exiftool(-k).exe" file to just "exiftool.exe". Installation and usage info is on a link in that thread to the original Auto ISO Patcher that was edited for this purpose.)
Direct link to the executable: Auto CHDK to EXIF v1.3-complete.zip - 2.61MB (this v1.3 'complete' archive already include the ExifTool executable, read the included README.txt file); see also the ISO80-issue discussion in the forum.

[Note that the above mentioned steps may not work for all cameras yet. Especially the A640 CHDK program was just recently added, so the RAW converters may not support it yet.
If you know that it works or have further information, please delete this paragraph]


The A630 and A640 are first mentioned in DCRaw (http://www.cybercom.net/~dcoffin/dcraw/) source code at version 8.70 (current as of June 17, 2008 is version 8.86), so may be supported (I don't have these cameras to test with). If you want to use DCRaw directly (from command line), you can download the source code from the above link and compile, or download binaries for both Windows and Mac OS X from http://www.insflug.org/raw/.

The A570, A630 and A640 is also supported in Raw Therapee (http://www.rawtherapee.com/). Its available for Windows and Linux.


DNG For PowerShot supports A610, A620, A630, A640, A710 IS, S2 IS, S3 IS since v1.1


DNG4PS-2 (v0.2.2beta-24) supported cameras: A610, A620, A630*, A640, A710 IS, S2 IS*, S3 IS, A700*, G7*, A560*, A570 IS*, IXUS 700*, IXUS 70*, IXUS 800*, A720 IS, S5 IS, IXUS 950, A650 IS, A460, SD800 IS, A530, A540.


There is also a hack for RawShooter (thanks PhotoHans). Examine a DNG file to obtain the exact name eg. 'PowerShotS3IS' (no spaces) open RawShooter.exe in an editor and change 'PowerShot G5 ' to PowershotS3IS and save. Make sure file length is unchanged and make a backup before you begin.


These are some Mac programs which read the RAW files (.CRW) produced by CHDK. From least to most hassle (and decreasing expense):

Fast, sweet WB & other options.
An extremely capable editor, better than PhotoShop in many ways. Full RAW file support, interpolation methods, WB, contrast, clipping, color correction, contrast, auto-white-point, clipping limits, assign ICC color-profiles, define curves on all or each channel, save favorite presets, etc. Does not export to DNG format, but DNG format is only needed by other less-capable editors so you don't need this feature. You do all your RAW editing right within PhotoLine. Converting to DNG format is only needed for those editors that can't deal with CHDK's unique RAW format natively. PhotoLine is not thus encumbered.
Promising. Slower; its WB options not yet satisfactory for some. Does not export to DNG format.
Does many conversions, great for automation, but you're working blind. This page gives examples of its parameters.
This is a GUI-Version of the above mentioned dcRAW. Works with my A710is (and I guess with most other Powershots)
These export JPG, and some TIFF and DNG


How to make converted DNG files work with Apple Aperture

By default the converted RAW files do not work with Apple Aperture, but with a little plist hack you can organize and edit them in Aperture!

(If you want to run the Windows version instead, it also works with emulator software Darwine or CrossOver Office )

If you are using Mac OS X 10.5 Leopard, the file is in /System/Library/CoreServices/RawCamera.bundle/Contents/Resources/Raw.plist

<key>Canon PowerShot A610</key>  <string>Canon PowerShot G6</string>


(Change "Canon-PowerShot A610" into the name of the camera you have. I also tried the S70 and 350D strings which also works. You can examine different Canon cameras' strings. Colors will be offset since Aperture treats your converted DNG files as the camera you assigned.) (2008/1/16 - Removed the dash from the <key> above from its previous, nonworking form <key>Canon-PowerShot A610</key> <string>Canon-PowerShot G6</string>. Make sure to add the key above the Canon PowerShot G6 entry in Raw.plist)

For more detailed discription on editing the Raw.plist you may look at here.


> hi! only DCRAW and RAW THERAPEE works with my S2 IS raw files, but imho (for me) RAW THERAPEE is better...you can edit your foto before you save it (i.e. in TIFF). So, don't waste your time:) Download RAW THERAPEE for your S2 IS raw files :)


There isn't real support of PowerShot G7 in dcraw (and in based ot it - libraw, libopenraw, ufraw, RawStudio, etc). The color matrix values used from A640 and it's wrong for G7.

As a solution you may 1) Save as DNG at camera by option in CHDK menu - "Raw Parameters". Or - 2). Convert your CRW to DNG by 'dngconverter' utility (from digiKam or https://github.com/jmue/dngconvert) using dcp profile - Canon_PowerShot_G7.dcp . Or - 3) Use DNG4PS-2 to convert CRW files to DNG.

DNG file you can open in any raw image processing program.


> Added comment. SD800IS doesn't work with G6, S70, or 350D settings map. Briefly flashes pic in Aperture (with weird aspect ratio) then you get the Unsupported Image Format message.



Fine-tuning Adobe Camera Raw's color rendition of CHDK-generated DNG files

"DNG profiles" are Adobe's solution to this. See this pagefor an explanation (and downloads of profiles for various cameras).