Kodak .dcr

When I process .dcr for a thumb with libraw I get a rainbow static image. Every other image format I've tried is fine. Is there something special I would need to do for this format?

Forums: 

Some kodak files are very

Some kodak files are very special in respect of thumbnails:
- the thumbnails are actually RAW data
-unpack_thumb() process them
- thumbnail.tformat is BITMAP for these images, not JPEG

Also, LibRaw 0.17 (alpha) has fixed several bugs relates to kodak thumbs.

So,
- upgrade to 0.17 (or Github master branch)
- ensure, that you handle thumbnail.tformat right

-- Alex Tutubalin

Currently I'm checking:

Currently I'm checking:

libraw_processed_image_t *image = rawProcessor->dcraw_make_mem_thumb(&result);
...
bool isJpeg = image->type == LIBRAW_IMAGE_JPEG;

This doesn't work for kodak?

It should work.

It should work.
Could you please provide some file(s) for testing (Dropbox or google drive is a good way for file sharing)

-- Alex Tutubalin

For both these images,

For both these images, thumbnail type is 2 (LIBRAW_IMAGE_BITMAP)

Checked with LibRaw 0.16 and with current (0.17) version.

-- Alex Tutubalin

I updated to the latest and

I updated to the latest and see the same artifact. Is the thumbnail processed properly for you? No additional steps necessary to handle it as opposed to other bitmap thumbnail formats (which work for me)?

I've modified mem-image,

I've modified mem-image sample, added line:

printf("Type=%d\n",thumb->type);

after the line

libraw_processed_image_t *thumb = RawProcessor.dcraw_make_mem_thumb(&ret);

And, yes, mem-image -e writes thumbnail as expected (in PPM format because it it bitmap).

Also, our FastRawViewer (that uses LibRaw::unpack_thumb to extract thumbnails) works fine with these files.

-- Alex Tutubalin

Again.

Again.
Kodak thumbnails *are not JPEGs*

-- Alex Tutubalin

Have you tested simple_dcraw

Have you tested simple_dcraw and/or mem-image samples with these kodak samples?

-- Alex Tutubalin