Posted: 2006-07-08T16:48:38-07:00
Post a URL to one of your CR2 images so we can download and reproduce the problem.
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=6936
I bumped into this conversation looking for methods to improve RAW file conversion using URFraw. Currently I'm getting dark images when converting from CR2 and ORF formats to PNG. Could you you please explain your response with an example command? Here are you talking about -colorspace or -profile option in ImageMagick?magick wrote:For color conversion you need two color profiles, a linear one and a sRGB one. The linear profile tells the profiler the original colorspace is linear and the second profile tells the profiler to convert the colorspace to sRGB. If you don't want to bother, use the dcraw program. It has a auto white balance option that will give you the results you're looking for (non-linear sRGB).
Its's probably best to supply a CR2 file you are having problems with.sandy.ps4 wrote:Currently I'm getting dark images ...
.snibgo wrote:Instead of trying to explain one side of a ten-year-old conversation, let's start again
Code: Select all
convert E1DXINBI003200.CR2 -colorspace RGB -resize 800x600 -colorspace sRGB out.png
Code: Select all
convert E1DXINBI003200.CR2 out.png
Code: Select all
identify -verbose E1DXINBI003200.CR2
Code: Select all
Image: /var/tmp/magick-90560_Lk5Ye9ZlrYu.png
Base filename: E1DXINBI003200.CR2
Format: CR2 (Canon Digital Camera Raw Image Format)
Class: DirectClass
Geometry: 5218x3482+0+0
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
Depth: 16-bit
Channel depth:
red: 16-bit
green: 16-bit
blue: 16-bit
Channel statistics:
Pixels: 18169076
Red:
min: 0 (0)
max: 65535 (1)
mean: 19171.6 (0.29254)
standard deviation: 11323.9 (0.172791)
kurtosis: -1.07912
skewness: 0.0154432
entropy: 0.939262
Green:
min: 0 (0)
max: 65535 (1)
mean: 18783.7 (0.286622)
standard deviation: 10823.5 (0.165157)
kurtosis: -1.08437
skewness: -0.0199694
entropy: 0.934749
Blue:
min: 0 (0)
max: 65535 (1)
mean: 15308 (0.233584)
standard deviation: 10115.7 (0.154355)
kurtosis: -0.61752
skewness: 0.323215
entropy: 0.913758
Image statistics:
Overall:
min: 0 (0)
max: 65535 (1)
mean: 17754.4 (0.270915)
standard deviation: 10765.8 (0.164275)
kurtosis: -0.876524
skewness: 0.127388
entropy: 0.929256
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 5218x3482+0+0
Dispose: Undefined
Iterations: 0
Compression: Zip
Orientation: Undefined
Properties:
date:create: 2016-01-28T09:59:15-06:00
date:modify: 2016-01-28T09:59:15-06:00
dng:Aperture: F/4.0
dng:AspectRatio: 1.498564
dng:ChannelMultipliers: 1.171875 1.000000 2.456055 1.000000
dng:CreateID: 1
dng:Crop: 0 0 5218 3482
dng:EXIFSource: DCRaw
dng:ExposureNorm: 37925
dng:FocalLength: 70.0 mm
dng:Green: 1.056
dng:ISOSpeed: 3200
dng:Make: Canon
dng:MatrixInputProfile: Color matrix
dng:Model: EOS-1D X
dng:Orientation: 0
dng:Rotation: 0.000000
dng:Shutter: 1/98.7 s
dng:sRGBOutputProfile: sRGB
dng:Temperature: 2679
dng:Timestamp: Thu Aug 30 14:32:49 2012
dng:WB: Camera WB
dng:WBFineTuning: 0
png:IHDR.bit-depth-orig: 16
png:IHDR.bit_depth: 16
png:IHDR.color-type-orig: 2
png:IHDR.color_type: 2 (Truecolor)
png:IHDR.interlace_method: 0 (Not interlaced)
png:IHDR.width,height: 5218, 3482
png:sRGB: intent=0 (Perceptual Intent)
png:text: 2 tEXt/zTXt/iTXt chunks were found
signature: 67510472971e6a8eee12420eb6d639bb8eb216f115a8f3d1959c00adb7dfcedf
Software: UFRaw
Source: CanonEOS-1D X
Artifacts:
filename: E1DXINBI003200.CR2
verbose: true
Tainted: False
Filesize: 94.66MB
Number pixels: 18.17M
Pixels per second: 189.26GB
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.9.2-4 Q16 x86_64 2015-10-11 http://www.imagemagick.org
Code: Select all
convert out.png -set colorspace RGB -colorspace sRGB s.png
Code: Select all
convert E1DXINBI003200.CR2 -set colorspace RGB -resize 800x600 -colorspace sRGB out.png
Code: Select all
dcraw -v -6 -A 2000 2000 1000 1000 -T -O foto3.jpg foto.cr2
How do you know?jose.sanpedro wrote:image is dark and colors do not match with the original image.