LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

Unsupported file format or not RAW file even with USE_DNGSDK

I apologize in advance as my understanding of DNGs is very poor, but I thought that building the Adobe DNG SDK and building libraw with USE_DNGSDK and libjxl would allow it to unpack my phone's DNGs.

However, perhaps I was mistaken as it still complains "Unsupported file format or not RAW file" when I tried to open it with ImageMagick or the mem_image sample.

I published a reproducable repo here: https://github.com/PseudoResonance/immich-base-images/tree/dng

Forums: 

Seeking guidance on achieving camera-like preview rendering with rawpy/libraw

Hello everyone,

I hope this message finds you well. I apologize in advance if this comes across as a beginner's question, but I'm hoping someone might be able to point me in the right direction.

I'm currently developing a photo correction application and have successfully implemented the desired features for standard image formats. However, I'm encountering challenges with RAW file processing that I'm struggling to resolve.

Forums: 

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: 

Pages

Subscribe to RSS - LibRaw technical support