LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

Unsupported file format or not RAW file

Hello I have a couple of photos that cannot be opened using Libraw. The photos are from a Sony ILCE-7RM5. Some photos from this camera LibRaw can open while others it cannot. I am using the libraw-dev version 0.21.3-r0 which should support this camera according to this document.

https://www.libraw.org/news/libraw-202403-snapshot

Does anyone have an issue that is similar or know what I might be missing?

Forums: 

Libraw bug report - libraw crash and core dump on digikam

on digikam, when scanning for faces, digikam crash and dump core with the message:

/run/media/miguel/RAW/miguel/RAW/2016/12/13/_DSF2806.RAF: data corrupted at 22980016
terminate called after throwing an instance of 'LibRaw_exceptions'

I've tried to attach the RAW file but the file type (RAF) it is not supported.

Forums: 

What can cause different output inside Docker container?

Hello,

I'm executing `dcraw_emu` inside a Docker container that uses `node:23-alpine` and the latest version of LibRaw.

When I run LibRaw to convert a DNG file inside the container running locally, I get good results. However, when the container is running on Digital Ocean, my results look very different: there's a lot of data lost in the output TIFF file that causes the result to look way too bright.

This happens only to a specific DNG file that comes from a scanner operated by SilverFast software. Other DNG files work fine and look the same on both systems.

Forums: 

Unknown error code (0x16) returned by libraw_dcraw_process()

Having correctly unpacked my raw image into raw_image, I tried to use libraw_dcraw_process() to create a debayered image with params.half_size = 1 (as per sample code), but I get a return code 22 (0x16) which libraw_strerror converts to "Unknown error code". Any hints as to what might be wrong?

Forums: 

JNA wrappers for LibRaw

I'm trying to write some JNA wrappers for LibRaw, but I'm struggling with the JNA spell for the raw data, specifically for the *raw_image member of the libraw_rawdata_t structure. I can access other members of this and other related structure as expected, but assuming that I would need to use a JNA Pointer type for *raw_image, I only ever get a null for this member after an unpack (no errors) call. I assume libraw.dlI allocates the memory for this data and return a pointer to a short array.

Forums: 

I don't understand why I get only 2 components data in all pixels

I tried to find some topic that already exists, and describes this problem, but I did not find one. Therefore, I decided to create this topic to seek help. I have a CR2 raw file, and I just want to get the raw pixel values, without "demosaic". Here is my source code so far:

Forums: 

Version Marking for 202403 Snapshot

Please could someone confirm the LibRaw version marking which should be displayed by an application using the 202403 snapshot?

I confess to being confused by LibRaw versioning. According to https://www.libraw.org/ "Minor updates (0.20.1, 0.20.2…) do not change the API/ABI and new cameras are not added; generally they are just bugfixes." Therefore I would expect 21.3 to just be a bugfix on 21.0.

Forums: 

RAW Processing Theory Resources (highlight recovery especially)

First, I solemnly swear I'm not expecting LibRaw to process my RAW data! I am trying to do my own RAW processing and LibRaw has wonderfully extracting the RAW data for me :)

I also recognize this forum isn't for RAW processing techniques, but there are many experienced people here so I'm hoping you all can point me to some resources that I can educate myself regarding the topic. I'm specifically interested to learn about different highlight recovery techniques.

Forums: 

Pages

Subscribe to RSS - LibRaw technical support