LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

Compile and use with mingw

Hello,
May I ask a question about using libraw with mingw?
My OS is Windows 7 and I installed MSYS and mingw492_32.
I download LibRaw-0.17.2.zip and extract it.
On command prompt, I executed
sh ./configure
mingw32-make -f Makefile.mingw
and could get lib\libraw.a

I tried to test this static library with simple_dcraw.cpp in samples folder.
g++ simple_dcraw.cpp -o simple.exe -Ilibraw -Llib -lraw

I got the following error messages:

Forums: 

FujiExpoMidPointShift bug in LibRaw 0.18

Hi LibRaw team,

I ran into a problem where the FujiExpoMidPointShift variable has a different value in the debug vs release builds. This seems to be a bug in LibRaw 0.18. It worked fine in LibRaw 0.17. Here is how to reproduce.

In the following Google Drive folder is a Fuji X-Pro1 RAF test image.

https://drive.google.com/drive/folders/0BzcmCgBZCb5WNFVvREwxeDl3eEE?usp=...

Forums: 

Demosaic raw without any other post-processing

Hello again,

is there some kind of best practise to just convert/demosaic a raw file without doing any other post-processing.

Basically I need the raw just converted to 16bits per channel RGB without noise reduction, highlight clipping or anything else.

I get my image data with

Forums: 

Problems with msvc 2015 x64 build

Hello,

I've experienced some strange results when using a 64bit build of libraw.
The dll and lib has been built with:

call "D:\Programme\Visual Studio 14\VC\vcvarsall.bat" x64
nmake -f Makefile.msvc

in the libraw main directory. (latest test was with 0.18 beta 2) - There are no warnings/errors at build time.

I'm also able to run my code, but I don't get an bitmap output with 16 bits per channel.

Forums: 

DNG conversion issue

I am using LibRaw together with the rawPy wrapper (http://pythonhosted.org/rawpy/api/rawpy.RawPy.html) to read in DNG files into Python. Unfortunately the input image does not seem to be correctly read in.

The code I use is:

import rawpy
import imageio

newFile = 'GOPR0079.DNG'

with rawpy.imread(newFile) as raw:
rgb = raw.postprocess(demosaic_algorithm=None,output_color = rawpy.ColorSpace.raw)

imageio.imsave('tst.png',rub)

Forums: 

Fuji X Pro 2 image that libraw cannot read

Hi,

I'm having trouble with reading a Fuji X Pro 2 raw image. You can download the raw file using this link (26MB).

https://drive.google.com/file/d/0BzcmCgBZCb5WOTlfN0hGcFhfVTg/view?usp=sh...

Adobe Photoshop is able to open this image, but FastRawViewer and a number of other products are not able to.

I have the version of libraw that includes compressed raw support. It is not able to read this image either. dcraw_emu reports:

Forums: 

Libraw-Licensing

Dear Libraw-Developers,

What are the requirements to use the libraw source-code in an (closed source) commercial application?

From what I understood the "libraw commercial software license agreement" allows this and merely requires attribution.

My questions:
1.) Is attribution sufficient?
2.) Is it mandatory to have the license-agreement in written and signed form?

Thanks in advance!

Cheers, Brian

Forums: 

dcraw_emu produces a different output than the original dcraw

Hi,
according to the documentation, the dcraw_emu tool should produce binary identical results to those produced by dcraw with the same command line keys. I have an example file where the behaviour between the two binaries differ. You can get the file here: https://drive.google.com/file/d/0B-kBET7UtPB9RkVzVzF6NzNWQzA/view?usp=sh....
Note that I used the following command on the file: ./dcraw -v -q 3 -4 -T ./IMG_9975.CR2

Forums: 

Pages

Subscribe to RSS - LibRaw technical support