https://app.assembla.com/spaces/chdk/subversion/source/HEAD/trunk/tools/rawconvert.c
Hmm... In the case of my camera, the ELPH 110HS,
http://chdk.wikia.com/wiki/ELPH110HSI thought the resolution is 4608x3456 = 15925248 pixels.
The CRW file is 25230816 bytes.
25230816 / 15925248 = 1.5843, or roughly 16-to-10.
So if I assume it's a 16-to-10 conversion...
I shouldn't be getting this error from rawconvert... right?
./rawconvert -16to10 -w=4608 -h=3456 -pgm CRW_2435.CRW IMG_2435.PGM
WARNING: Portable Gray Map (PGM) format supports only 8 or 16 bpp.
./rawconvert: CRW_2435.CRW mismatched size (4608*3456*16)/8 -> 31850496 != 25230816
./rawconvert -16to10 -w=4608 -h=3456 CRW_2435.CRW IMG_2435
./rawconvert: CRW_2435.CRW mismatched size (4608*3456*16)/8 -> 31850496 != 25230816
But OK let's try 12 to 8:
./rawconvert -12to8 -w=4608 -h=3456 CRW_2435.CRW IMG_2435
./rawconvert: CRW_2435.CRW mismatched size (4608*3456*12)/8 -> 23887872 != 25230816
10 to 8?
./rawconvert -10to8 -w=4608 -h=3456 CRW_2435.CRW IMG_2435
./rawconvert: CRW_2435.CRW mismatched size (4608*3456*10)/8 -> 19906560 != 25230816
Oh well.