Page 1 of 1

dcraw outputs pure black for Sony A5000

Posted: 2016-08-14T14:33:08-07:00
by olegk
The problem happens in 7.* versions; earlier versions produced low-contrast images with this specific model.

Sample commands and their screen outputs:

F:\Work\Tools\IM_702d7>dcraw -v -o 1 -b 1 -w -T -O DSC00501.TIF DSC00501.ARW
Loading Sony ILCE-5000 image from DSC00501.ARW ...
Platform 0: Intel(R) Corporation OpenCL 1.2
Device 0: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
Device 1: Intel(R) HD Graphics 4400 <---
Scaling with darkness 0, saturation 4095, and
multipliers 3.031250 1.000000 1.566406 1.000000
AHD interpolation (CL)...
Building histograms...
Writing data to DSC00501.TIF ...

F:\Work\Tools\IM_702d7>dcraw -v -o 1 -b 1 -a -T -O DSC00501.TIF DSC00501.ARW
Loading Sony ILCE-5000 image from DSC00501.ARW ...
Platform 0: Intel(R) Corporation OpenCL 1.2
Device 0: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
Device 1: Intel(R) HD Graphics 4400 <---
Scaling with darkness 0, saturation 4095, and
multipliers 1.000000 1.000000 1.000000 1.000000
AHD interpolation (CL)...
Building histograms...
Writing data to DSC00501.TIF ...

Re: dcraw outputs pure black for Sony A5000

Posted: 2016-08-14T14:48:31-07:00
by snibgo
dcraw isn't written or maintained by the ImageMagick people. I suggest you take it up with Dave Coffin, or whoever currently maintains it.

Re: dcraw outputs pure black for Sony A5000

Posted: 2016-08-14T15:19:53-07:00
by dlemstra
Can you share your input image so we can test if we can reproduce this issue?

@snigbo: We have made some changes to dcraw recently. It can now use OpenCL and that has improved the performance very much (https://twitter.com/MagickNET/status/735230384615661568)

Re: dcraw outputs pure black for Sony A5000

Posted: 2016-08-15T13:14:35-07:00
by olegk
Here is a sample RAW from the A5000:
https://1drv.ms/u/s!Aj_oGEjjyCT-igxQCotS2hLUSXd6

Thanks,
Oleg

Re: dcraw outputs pure black for Sony A5000

Posted: 2016-08-15T13:52:22-07:00
by snibgo
dlemstra wrote:We have made some changes to dcraw recently.
Ah, I didn't know you were a dcraw person. Good stuff, great program. And faster is always better.

Re: dcraw outputs pure black for Sony A5000

Posted: 2016-08-16T09:54:25-07:00
by dlemstra
We had some help from our friends at AMD, they gave us this patch.

Re: dcraw outputs pure black for Sony A5000

Posted: 2016-08-19T01:26:54-07:00
by olegk
I downloaded and compiled the original dcraw version 9.27 .
This version converts my files just fine:
===========================================================
D:\ANY\DCRAW\DCRAW_160819>%DCRAW% -v -o 1 -b 1 -w -T INPUTS\DSC00500.ARW
Loading Sony ILCE-5000 image from INPUTS\DSC00500.ARW ...
Scaling with darkness 128, saturation 4095, and
multipliers 3.031250 1.000000 1.566406 1.000000
AHD interpolation...
Converting to sRGB colorspace...
Writing data to INPUTS\DSC00500.tiff ...
===========================================================

So, the problem is with Imagemagick binary distribution having a different dcraw.

Re: dcraw outputs pure black for Sony A5000

Posted: 2016-08-19T11:13:13-07:00
by dlemstra
We have our own custom version of dcraw and we are now working on fixing the issue. We should have this fixed in a couple days.