ArticleslgStudy

computer science

Dcraw

Dcraw is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Dcraw rather than just read about it. In short: dcraw is an open-source computer program which is able to read numerous raw image format files, typically produced by mid-range and high-end digital cameras. dcraw converts these images into the standard TIFF and PPM image formats. This conversion is sometimes referred to as developing a raw image (by analogy with the process of film development) since it renders raw image sensor data (a "digital negative") into a v…

Dcraw — main illustration
Dcraw — illustration

Key takeaways

  • Dcraw belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Dcraw to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Dcraw from memory before moving on to harder problems.

Reference excerpt

dcraw is an open-source computer program which is able to read numerous raw image format files, typically produced by mid-range and high-end digital cameras. dcraw converts these images into the standard TIFF and PPM image formats. This conversion is sometimes referred to as developing a raw image (by analogy with the process of film development) since it renders raw image sensor data (a "digital negative") into a viewable form. A number of other image processing programs use dcraw internally to enable them to read raw files. Development of dcraw began on February 23, 1997. Version 1.0 was released in revision 1.18, on May 5, 2000. Versions up to 3.15 used the name Canon PowerShot Converter, starting with v3.40 the name was Raw Photo Decoder, switching to Raw Photo Decoder "dcraw" in v5.70. Version 8.86 supported 300 cameras. The development has stalled, with only two releases since May 2015 and the last release dated June 2018, but parts of dcraw are included in LibRaw.

Motivation While most camera manufacturers supply raw image decoding software for their cameras, this software is almost always proprietary, and often becomes unsupported when a camera model is discontinued. The file formats themselves are often undocumented, and several manufacturers have gone so far as to encrypt all or part of the data in their raw image format, in an attempt to prevent third-party software from accessing it. Given this ever-expanding plethora of raw image formats, and uncertain and inconsistent support for them by the manufacturers, many photographers worry that their valuable raw images may become unreadable as the applications and operating systems required become obsolete.

In contrast to proprietary decoding software, dcraw strives for simplicity, portability, and consistency, as expressed by its author:So here is my mission: Write and maintain an ANSI C program that decodes any raw image from any digital camera on any computer running any operating system.

Design

Because many raw image formats are specific to one make or model of camera, dcraw is frequently updated to support new models. For many proprietary raw image formats, dcraw's source code (based largely on reverse-engineering) is the best—or only—publicly available documentation. dcraw currently supports the raw formats of several hundred cameras. dcraw is built around the Unix philosophy. The program is a command line tool which takes a list of raw image files to process, along with any image adjustment options desired. dcraw also serves as the basis for various high-level raw image-processing applications (such as viewers and converters), both free and open source software as well as proprietary software.

GUI front-ends Several GUI front-ends for dcraw are available. These applications use dcraw as a back-end to do the actual processing of raw images, but present a graphical interface with which the image processing options can be adjusted.

AZImage – image converter (uses LibRaw rather than dcraw) for Windows darktable – a standalone raw developer for Windows, Linux, and macOS dcraw-assist – for Linux dcRAW-X – for macOS digiKam – for Linux DNG Viewer by ideaMK – raw image viewer for Windows EasyHDR – for Windows gimp-dcraw – GIMP plug-in for Windows, Linux, and macOS Helicon Filter – photo editor, can use dcraw for raw processing for Windows Konvertor – for Windows nUFRaw – a standalone raw developer, a new version of UFRaw for Linux Phiewer – for macOS RAWDrop – for Windows Rawstudio – a standalone raw developer for Linux SilkRaw – exports embedded thumbnails and launch batch conversion for Amiga OS4, AROS, and MorphOS SNS-HDR – for Windows UFRaw – a standalone raw developer and GIMP plug-in for Windows, Linux, and macOS Mass Image Compressor – Bulk image compressor for Windows, uses dcraw to read and convert the images to JPEG.

References

External links

Official website dcraw compiled for Microsoft Windows by Axel Rietschin dcraw compiled for Microsoft Windows by Bartłomiej Okonek

Illustrations

Dcraw: Screenshot of dcraw v. 8.99
Screenshot of dcraw v. 8.99

Worked examples

Example 1 — a first encounter with Dcraw

Start with the simplest possible case. Write down what Dcraw claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Dcraw before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Dcraw ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Dcraw

In research
Dcraw appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Dcraw in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Dcraw is common in secondary-school and first-year university syllabi. It links to neighbouring topics Digital photography, Free raw image processing software, Free software programmed in C, so understanding it makes those chapters shorter.
In everyday life
Look for Dcraw outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Dcraw” →

How to study Dcraw in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Dcraw means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Dcraw out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Dcraw in simple terms?

dcraw is an open-source computer program which is able to read numerous raw image format files, typically produced by mid-range and high-end digital cameras. dcraw converts these images into the standard TIFF and PPM image formats. This conversion is sometimes referred to as developing a raw image…

Why does Dcraw matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Dcraw?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Dcraw.

Tags

  • Digital photography
  • Free raw image processing software
  • Free software programmed in C
  • Photo software for Linux

Keep exploring