I have just been able to process a compressed NEF file from a D40. The code is incomplete and a total hack, but it works :-) I will now start to clean it up and send it for review in a series of patches. Cheers, Rafael