This is certainly a Matryoshka doll of wrappings:<p>- At root there is dcraw [1], which is Dave Coffin&#x27;s sometimes inscrutable but massive and high-functioning CLI utility to read virtually any raw file from virtually any camera.<p>- On top of this, we have LibRaw [2] which &quot;librarizes&quot; dcraw so it can play nice with other C programs. LibRaw is big and complicated (like dcraw) but incredibly helpful.<p>- On top of that, there is rawkit [3] (with which I wasn&#x27;t formerly familiar, and looks interesting), which provides a Python cffi interface to LibRaw.<p>- And now we have a REPL built on top of rawkit!<p>Somewhat perversely, I hope someone makes a CLI interface to rawkit, and then we could call it, er, dcraw?<p>One caveat here is that dcraw and its prodigies, though amazing, do just the initial steps in tuning up a RAW file -- the demosaicing and just a few other niceties such as white balance. If you want to process the image in a sophisticated way (e.g. curves, local contrast adjustment, shadows&#x2F;highlights, sharpening, masks, etc.) you&#x27;ll need to switch to a different tool, such as darktable [4] or RawTherapee [5]. Or use ImageMagick, as mentioned by another commenter.<p>Note that darktable now can be scripted via lua, which could be another source of flexibility. And also that darktable ditched LibRaw for RawSpeed [6], which is more elegant than LibRaw, as it was written from scratch as library to load RAW files (and do nothing else), rather than, like dcraw, accreted over the course of many generations of digital cameras.<p>1. <a href="http:&#x2F;&#x2F;www.cybercom.net&#x2F;~dcoffin&#x2F;dcraw&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.cybercom.net&#x2F;~dcoffin&#x2F;dcraw&#x2F;</a><p>2. <a href="http:&#x2F;&#x2F;www.libraw.org&#x2F;about" rel="nofollow">http:&#x2F;&#x2F;www.libraw.org&#x2F;about</a><p>3. <a href="https:&#x2F;&#x2F;rawkit.readthedocs.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;rawkit.readthedocs.org&#x2F;</a><p>4. <a href="http:&#x2F;&#x2F;darktable.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;darktable.org&#x2F;</a><p>5. <a href="http:&#x2F;&#x2F;rawtherapee.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;rawtherapee.com&#x2F;</a><p>6. <a href="https:&#x2F;&#x2F;github.com&#x2F;klauspost&#x2F;rawspeed&#x2F;tree&#x2F;develop" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;klauspost&#x2F;rawspeed&#x2F;tree&#x2F;develop</a>