How to install dcraw on Debian 8.3

How to install dcraw on Debian 8.3

The dcraw is an open-source application used for reading numerous raw image formats, typically the ones produced by high-end digital cameras. The dcraw is a simple to install tool and also can convert these raw images into the standard PPM and TIFF image formats. This tutorial explains the installation procedure of dcraw on Debian.


Installation procedure

To start the installation procedure, execute the nano command to open the sources.list file. 

root@linuxhelp:~# nano /etc/apt/sources.list

The sources.list file is opened. Now add these lines at end of the file. Save and exit from the file. 

deb stable main contrib non-free
deb jessie main

Next run the apt- get update command to update the apt sources-list in the target system. 

root@linuxhelp:~# apt-get update
Get:1 jessie-updates InRelease [145 kB]
Ign jessie InRelease          
Get:2 jessie Release.gpg [2,373 B]
Get:3 jessie Release [148 kB]                 
Get:4 jessie/main amd64 Packages [6,776 kB]
Ign stable InRelease                                       
Get:5 jessie-updates/main Sources [15.5 kB]
Get:6 jessie-updates/contrib Sources [32 B]         
Get:7 jessie-updates/main amd64 Packages/DiffIndex [7,900 B]
Get:8 jessie-updates/contrib amd64 Packages [32 B]
Get:9 jessie-updates/contrib Translation-en [14 B]   
Get:10 jessie-updates/main Translation-en/DiffIndex [2,704 B]  
Get:11 stable Release.gpg [2,373 B]                 
Get:12 jessie-updates/main amd64 2017-03-14-2025.02.pdiff [526 B]
Get:13 jessie-updates/main amd64 2017-04-15-2027.16.pdiff [528 B]
Get:14 jessie-updates/main amd64 2017-04-15-2027.16.pdiff [528 B]
Fetched 23.4 MB in 6min 22s (61.3 kB/s)                                                           
Reading package lists... Done

Then execute the apt-get install command to install the dcraw package

root@linuxhelp:~# apt-get install dcraw
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Suggested packages:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 264 not upgraded.
Need to get 148 kB of archives.
After this operation, 331 kB of additional disk space will be used.
Get:1 stable/main dcraw amd64 9.21-0.2+b2 [148 kB]
Fetched 148 kB in 5s (25.7 kB/s)
Selecting previously unselected package dcraw.
(Reading database ... 136857 files and directories currently installed.)
Preparing to unpack .../dcraw_9.21-0.2+b2_amd64.deb ...
Unpacking dcraw (9.21-0.2+b2) ...
Processing triggers for man-db ( ...
Setting up dcraw (9.21-0.2+b2) ...

Once the package has been installed, run the dcraw package by executing the following command. It displays the options that can be used with dcraw package. 

root@linuxhelp:~# dcraw
Raw photo decoder "dcraw" v9.21
by Dave Coffin, dcoffin a cybercom o net
Usage:  dcraw [OPTION]... [FILE]...
-v        Print verbose messages
-c        Write image data to standard output
-e        Extract embedded thumbnail image
-i        Identify files without decoding them
-i -v     Identify files and show metadata
-z        Change file dates to camera timestamp
-w        Use camera white balance, if possible
-a        Average the whole image for white balance
-A <x y w h> Average a grey box for white balance
-r <r g b g> Set custom white balance
+M/-M     Use/don't use an embedded color matrix
-C <r b>  Correct chromatic aberration
-P <file> Fix the dead pixels listed in this file
-K <file> Subtract dark frame (16-bit raw PGM)
-k <num>  Set the darkness level
-S <num>  Set the saturation level
-n <num>  Set threshold for wavelet denoising
-4        Linear 16-bit, same as "-6 -W -g 1 1"
-T        Write TIFF instead of PPM

Wasn't that an easy installation procedure? The dcraw is renders the raw image sensor data into a viewable form. 


Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: debian dcraw
user image Author :  Connor