Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been looking for a light-weight image viewer to replace gThumb now that I'm not running Gnome anymore, and found XLoadImage. How can I add support for Canon's raw CR2 format?

anna@anna:~ $ xloadimage IMG_0001.CR2 
TIFFReadDirectory: Warning, Photometric tag is missing, assuming data is YCbCr.
TIFFReadDirectory: Warning, SamplesPerPixel tag is missing, applying correct SamplesPerPixel value of 3.
OJPEGSubsamplingCorrect: Warning, Subsampling tag is not set, yet subsampling inside JPEG data [2,1] does not match default values [2,2]; assuming subsampling inside JPEG data is correct.
IMG_0001.CR2 is a 5184x3456 24-bit single-plane YCBCR TIFF image
IMG_0001.CR2: YCBCR  is an unsupported TIFF photometric style, sorry.
IMG_0001.CR2: unknown or unsupported image type
anna@anna:~ $ 

The only thing I've found so far is a plugin for GIMP, but GIMP is definitely not light-weight.

share|improve this question

There is a command line tool dcraw that will process raw files to jpegs.

There are also several libraries for working with RAW files:

share|improve this answer
Do you know of an image viewer that uses any of the libs? – Anna Jul 14 '12 at 7:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.