LibRaw
0.21.1
About: LibRaw is a library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others).
![]() ![]() |
The LibRaw library provides a simple and unified interface for extracting out of RAW files generated by digital photo cameras the following:
The library is intended for use with programs that work with RAW files, such as:
Using the LibRaw library allows one to focus on the substantive part of processing the data contained in RAW files, without getting distracted by the wide variety of RAW file and metadata formats, compression algorithms, etc.
The librarys development is focused on:
Additionally, the LibRaw library offers some basic RAW conversion, intended for cases when such conversion is not the main function of the LibRaw-using application (for example: a viewer for 500+ graphic file formats, including RAW). These methods are inherited from the Dave Coffins dcraw.c utility (see below the Project history section); their further development is not currently planned, because we do not consider production-quality rendering to be in the scope of LibRaws functionality (the methods are retained for compatibility with prior versions and for rapid-fire testing of RAW support and other aspects).
The LibRaw library is distributed free of charge and with open-source code subject to two licenses:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
To use the LibRaw library in an application, you can choose the license that better suits your needs.
If you modify/add/improve the LibRaw source code, then your patches can only be included into the librarys official source code if you agree to it being distributed under both of the above licenses.
We do not guarantee that the licensing will not change in future versions of LibRaw.
We cannot guarantee any response to requests submitted via the above methods. If you need a guaranteed response for a bug report and/or for extending technical support, please use the Extended Support option.
The LibRaw project was launched in 2008, based on the dcraw.c (Dave Coffin) utility, with its goals being to:
Unfortunately, support for dcraw.c was reduced to a minimum in 2015, and completely ceased in 2018. Since then, support for new cameras (including support for new formats) has been done entirely by the LibRaw team.
The code that implements rendering of RAW to RGB is inherited from dcraw.c, without major changes (though a set of changes was implemented to speed up and parallelize this code).
In the early-to-mid 2010s, we gladly expanded post-processing implemented in LibRaw, and readily accepted the input of outside developers (new/improved methods for debayerization/demosaicing, systematic noise reduction etc.).
Experience has shown that the LibRaw team cannot support this added code on their own, while contributors do not provide support and development of the code they suggest and it ends up abandoned. As such, the majority of the modifications that are implemented by people outside the LibRaw team was moved to the LibRaw-demosaic-pack- ., where they remain in their original form (but these projects are still present in our GitHub).
Thus, we arrive at our current status, described in the first part of this text.
Copyright (C) 2008-2021 LibRaw LLC
LibRaw uses code from Dave Coffins dcraw.c utility (without RESTRICTED/GPL2 code):
Copyright 1997-2018 by Dave Coffin, dcoffin a cybercom o net
LibRaw uses DCB demosaic code by Jaceck Gozdz distributed under BSD license:
Copyright (C) 2010, Jacek Gozdz (mailto:cuniek@kft.umcs.lublin.pl)
LibRaw uses Roland Karlssons X3F tools source code, licensed under BSD license:
Copyright (c) 2010, Roland Karlsson (roland@proxel.se)