Differing output sizes with convert vs embedded image
Posted: 2012-09-02T23:34:14-07:00
First up, shooting with a CanonEOS 5D Mark II 21.1 megapixels so a 5616×3744 resolution.
I'm trying to process some RAW images in CR2 format, but when simply doing a `convert source.CR2 output.JPG` my output image is coming out at 3753x5634 instead of the expected 3744x5616 size. Extracting the embedded image from the source file (`ufraw-batch --embedded-image source.CR2`) gives me the correct size as well and opening the file in photoshop also comes out as I expect so I'm a little confused as to why this is happening.
Snippet of output from `identify -verbose`
Obviously I can see that the geometry is stating the image is 3753x5634 but in the exif data you can see a length and width of 3744 and 5616 noted.
Am I simply missing an obvious command to have this image come out in the dimensions I would expect, or do I just have to go the -scale route instead?
ImageMagick version is 6.6.9-7 2012-08-17
I'm trying to process some RAW images in CR2 format, but when simply doing a `convert source.CR2 output.JPG` my output image is coming out at 3753x5634 instead of the expected 3744x5616 size. Extracting the embedded image from the source file (`ufraw-batch --embedded-image source.CR2`) gives me the correct size as well and opening the file in photoshop also comes out as I expect so I'm a little confused as to why this is happening.
Snippet of output from `identify -verbose`
Code: Select all
Image: /tmp/magick-zb77knb0.png
Format: CR2 (Canon Digital Camera Raw Image Format)
Geometry: 3753x5634+0+0
Resolution: 72x72
Page geometry: 3753x5634+0+0
Properties:
dng:Model: EOS 5D Mark II
exif:ExifImageLength: 3744
exif:ExifImageWidth: 5616
exif:FocalPlaneXResolution: 5616000/1459
exif:FocalPlaneYResolution: 3744000/958
PNG:IHDR.width,height : 3753, 5634
Software: UFRaw
Source: CanonEOS 5D Mark II
Filesize: 101.2MBB
Number pixels: 21.14MB
Pixels per second: 16.65MB
User time: 1.270u
Elapsed time: 0:02.269
Version: ImageMagick 6.6.9-7 2012-08-17 Q16 http://www.imagemagick.org
Am I simply missing an obvious command to have this image come out in the dimensions I would expect, or do I just have to go the -scale route instead?
ImageMagick version is 6.6.9-7 2012-08-17