LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

X-Trans — 6-pixel margin alignment shifts the active area and loses 2 rows/cols vs the camera's EXIF crop (X-Pro2-class)

I've hit a small but consistent issue on X-Trans bodies whose in-camera (RAF EXIF) crop origin isn't a multiple of 6 (the X-Trans CFA period). Clearest example, Fujifilm X-Pro2:

• RAF EXIF crop (RawImageCropTopLeft / RawImageCroppedSize): origin (16,16), size 6000×4000
• LibRaw output: origin (18,18), size 5998×3998

Forums: 

Problem with colour of images

I'm pretty sure this isn't a Libraw problem, but a problem with my code! I use unpack() to extract the raw image data and then convert the data into my application's internal image format using code base on code I found in the Libraw/dcraw source code.

The problem is that my images are somewhat too red in colour as compared to how (e.g.) Windows "Icon view" or IrfanView display them. A somewhat simplified version of the code I use is here:

Forums: 

mismatch between size reported after libraw_open_file(), and decoded image size

Hello everyone, thank you for this nice thing.

I had a bug report for this image with libraw 0.21.4-2 (the version in ubuntu 25.10).

http://www.rawsamples.ch/raws/nikon/d1x/RAW_NIKON_D1X.NEF

The size reported by libraw_open_file() is:

Forums: 

Fujifilm .RAF Unpack Slow LibRaw 2.2

Hi there.

As part of initial Integration Testing LibRaw 0.22 with my application, I came across an issue whereby this new version unpacks (before Demosaicing) FujiFilm GFX-100 II images almost 10 X slower than version 0.21.5. I've benchmarked other Camera formats and not seen such a difference. Reviewing the Release Notes I see the GFX100-II is now officially supported. I notice a very subtle difference between the .22 and .2.5 outputs, but clearly there is nothing to explain such a huge difference in performance.

Forums: 

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: 

Pages

Subscribe to RSS - LibRaw technical support