dcraw outputs pure black for Sony A5000

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
olegk
Posts: 37
Joined: 2013-08-16T11:31:10-07:00
Authentication code: 6789

dcraw outputs pure black for Sony A5000

Post 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 ...
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: dcraw outputs pure black for Sony A5000

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: dcraw outputs pure black for Sony A5000

Post 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)
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
olegk
Posts: 37
Joined: 2013-08-16T11:31:10-07:00
Authentication code: 6789

Re: dcraw outputs pure black for Sony A5000

Post by olegk »

Here is a sample RAW from the A5000:
https://1drv.ms/u/s!Aj_oGEjjyCT-igxQCotS2hLUSXd6

Thanks,
Oleg
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: dcraw outputs pure black for Sony A5000

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: dcraw outputs pure black for Sony A5000

Post by dlemstra »

We had some help from our friends at AMD, they gave us this patch.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
olegk
Posts: 37
Joined: 2013-08-16T11:31:10-07:00
Authentication code: 6789

Re: dcraw outputs pure black for Sony A5000

Post 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.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: dcraw outputs pure black for Sony A5000

Post 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.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply