Add new comment

dcraw_ppm_tiff_writer()

dcraw_ppm_tiff_writer() applies gamma curve on write (imgdata.image[] is linear, while output is usually not).

To set gamma curve to linear use
imgdata.params.gamm[0] = imgdata.params.gamm[1] = 1.0;

-- Alex Tutubalin @LibRaw LLC