How To Install Dcraw On Ubuntu 16.04
To Install dcraw on Ubuntu 16.04
dcraw is an open-source application used for reading numerous raw image formats, typically the ones produced by high-end digital cameras. dcraw is a simple to install tool, and this article covers the installation of dcraw on Ubuntu.
Installing dcraw
To initiate the installation of dcraw, you need to add the repository in your system. Use the following command for the same purpose.
root@linuxhelp1:~# add-apt-repository ppa:dhor/myway
Every photographer needs some tools...
More info: https://launchpad.net/~dhor/+archive/ubuntu/myway
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpbr_97onh/secring.gpg' created
gpg: keyring `/tmp/tmpbr_97onh/pubring.gpg' created
gpg: requesting key 93330B78 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpbr_97onh/trustdb.gpg: trustdb created
gpg: key 93330B78: public key " Launchpad PPA for Dariusz Duma" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Once it is done, update the newly added repository as follows.
root@linuxhelp1:~# apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/dhor/myway/ubuntu xenial InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Fetched 204 kB in 1s (108 kB/s)
Reading package lists... Done
Now is the time to install the package. Use the following command for the same purpose.
root@linuxhelp1:~# apt-get install dcraw -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gphoto2
The following NEW packages will be installed:
dcraw
0 upgraded, 1 newly installed, 0 to remove and 470 not upgraded.
Need to get 147 kB of archives.
After this operation, 368 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 dcraw amd64 9.21-0.2 [147 kB]
Fetched 147 kB in 2s (59.7 kB/s)
Selecting previously unselected package dcraw.
(Reading database ... 176594 files and directories currently installed.)
Preparing to unpack .../dcraw_9.21-0.2_amd64.deb ...
Unpacking dcraw (9.21-0.2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up dcraw (9.21-0.2) ...
You can know about the options available with the dcraw command by invoking the following command.
root@linuxhelp1:~# 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
-H [0-9] Highlight mode (0=clip, 1=unclip, 2=blend, 3+=rebuild)
-t [0-7] Flip image (0=none, 3=180, 5=90CCW, 6=90CW)
-o [0-5] Output colorspace (raw,sRGB,Adobe,Wide,ProPhoto,XYZ)
-o < file> Apply output ICC profile from file
-p < file> Apply camera ICC profile from file or " embed"
-d Document mode (no color, no interpolation)
-D Document mode without scaling (totally raw)
-j Don' t stretch or rotate raw pixels
-W Don' t automatically brighten the image
-b < num> Adjust brightness (default = 1.0)
-g < p ts> Set custom gamma curve (default = 2.222 4.5)
-q [0-3] Set the interpolation quality
-h Half-size color image (twice as fast as " -q 0" )
-f Interpolate RGGB as four colors
-m < num> Apply a 3x3 median filter to R-G and B-G
-s [0..N-1] Select one raw image or " all" from each file
-6 Write 16-bit instead of 8-bit
-4 Linear 16-bit, same as " -6 -W -g 1 1"
-T Write TIFF instead of PPM
For removing the package.
root@linuxhelp1:~# apt-get remove dcraw -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
dcraw
0 upgraded, 0 newly installed, 1 to remove and 470 not upgraded.
After this operation, 368 kB disk space will be freed.
(Reading database ... 176612 files and directories currently installed.)
Removing dcraw (9.21-0.2) ...
Processing triggers for man-db (2.7.5-1) ...
It was a simple installation method, wasn' t it? dcraw can convert the images into the standard PPM and TIFF image formats. This conversion is sometimes referred to as developing a raw image since it renders raw image sensor data into a viewable form. Several front-end tools such as Darktable, Rawtherapee and UFRaw, use dcraw as its back-end.
Comments ( 0 )
No comments available