Canon CR2 to JPG: Lots of Warnings

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
LukeLR
Posts: 1
Joined: 2018-02-20T12:41:58-07:00
Authentication code: 1152

Canon CR2 to JPG: Lots of Warnings

Post by LukeLR »

Hello folks,
when trying to convert a Canon CR2 to JPG, I'm getting lots of warnings:

Code: Select all

$ convert IMG_1176.CR2 -quality 100% IMG_1176-2.JPG
convert: Photometric tag is missing, assuming data is YCbCr. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: SamplesPerPixel tag is missing, applying correct SamplesPerPixel value of 3. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: 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. `OJPEGSubsamplingCorrect' @ warning/tiff.c/TIFFWarnings/999.
convert: Unknown field with tag 34864 (0x8830) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Unknown field with tag 34866 (0x8832) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Incorrect count for "MakerNote"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/999.
convert: Wrong data type 3 for "PixelXDimension"; tag ignored. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Wrong data type 3 for "PixelYDimension"; tag ignored. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Unknown field with tag 40965 (0xa005) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Unknown field with tag 42032 (0xa430) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Unknown field with tag 42033 (0xa431) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Unknown field with tag 42034 (0xa432) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Unknown field with tag 42036 (0xa434) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Unknown field with tag 42037 (0xa435) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Photometric tag is missing, assuming data is YCbCr. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: SamplesPerPixel tag is missing, applying correct SamplesPerPixel value of 3. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: 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. `OJPEGSubsamplingCorrect' @ warning/tiff.c/TIFFWarnings/999.
convert: Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEG compression and notify vendor of writing software. `OJPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/999.
convert: Unknown field with tag 513 (0x201) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: Unknown field with tag 514 (0x202) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/999.
convert: TIFF directory is missing required "ImageLength" field. `MissingRequired' @ error/tiff.c/TIFFErrors/650.
Should I worry about that? I want to preserve quality during the conversion as much as possible... Especially, what does the "new-style JPEG compression" mode mean?

Thanks in advance!
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Canon CR2 to JPG: Lots of Warnings

Post by Bonzo »

I have never received any warnings like that with my Canon cameras. What version of Imagemagick are you using and what is your camera. Are you using the Magick lantern software on your camera?

Out of interest - in a filename can cause problems with some software and I would use _ instead.

EDIT: It looks like Imagemagick thinks your file is a tiff file and I suppose that creates the other warnings as the tiff data Imagemagick is looking for is not there.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Canon CR2 to JPG: Lots of Warnings

Post by snibgo »

As Bonzo says, IM is misinterpreting your CR2 file as TIFF. What version of IM? What is your exact command?

Try the command with "-verbose". What is the text output?
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Canon CR2 to JPG: Lots of Warnings

Post by fmw42 »

I do not use CR2 images, but try telling the input to consider it truly as CR2 by prefacing with CR2:

Code: Select all

convert CR2:IMG_1176.CR2 -quality 100% IMG_1176-2.JPG
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Canon CR2 to JPG: Lots of Warnings

Post by Bonzo »

I have a feeling as the OP has not been back they may have been using the Magick lantern software on their camera. I am not keen to install it on my current camera to see what happens.
Post Reply