dark conversion of CR2 files

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
alvgarc

dark conversion of CR2 files

Post by alvgarc »

Hi:

I always obtain from .cr2 to .jpg a dark jpg (compared it with the thumbnail image of the CR2,captured by the C350D).

Here you have one example:

1) The original .cr2 : IMG_7380.CR2 -> http://ul.to/hhz376

2) The Jpeg created by the camera: IMG_7380.JPG -> http://ul.to/djtq71

3) The one from convert: (convert -quality 100 IMG_7380.CR2 IMG_7380_convert.JPG) -> http://ul.to/4m2fkr

Thanks for your feedback
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: dark conversion of CR2 files

Post by el_supremo »

ImageMagick uses the dcraw program as a delegate to convert the CR2 file to something it can read. By default this conversion produces a 16-bit linear image. You will have to change the options to the dcraw program in delegates.xml so that it will produce an 8 bit colour image.
See: http://www.imagemagick.org/Usage/formats/#crw
and http://www.imagemagick.org/Usage/files/#delegates and more specifically, this http://www.imagemagick.org/Usage/files/#delegate_dcraw

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
anjanesh

Re: dark conversion of CR2 files

Post by anjanesh »

Code: Select all

cd /usr/lib/ImageMagick-6.5.1/config
grep -ir "cr2" *
I did a search for cr2 and none found.
So how do I get a WB with decent lighting ?
[ On opening in f-spot, it shows a nicely balanced image ]
Post Reply