TIFF directory is missing required "ImageLength" field
Posted: 2015-10-22T13:03:36-07:00
I'm getting this error while trying to convert a CR2 file (without extension) using the following command:convert: TIFF directory is missing required "ImageLength" field. `MissingRequired' @ error/tiff.c/TIFFErrors/553.
Code: Select all
convert -quiet test out.png
Result of
Code: Select all
identify -verbose test
Image: test
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 5184x3456+0+0
Resolution: 72x72
Print size: 72x48
Units: PixelsPerInch
Type: TrueColor
Base type: TrueColor
Endianess: LSB
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 17915904
Red:
min: 10 (0.0392157)
max: 255 (1)
mean: 110.978 (0.435209)
standard deviation: 55.278 (0.216777)
kurtosis: -1.73738
skewness: -0.142265
entropy: 0.869265
Green:
min: 11 (0.0431373)
max: 253 (0.992157)
mean: 105.257 (0.412773)
standard deviation: 47.5014 (0.18628)
kurtosis: -1.49512
skewness: -0.233857
entropy: 0.876113
Blue:
min: 0 (0)
max: 245 (0.960784)
mean: 97.7112 (0.383181)
standard deviation: 39.6831 (0.15562)
kurtosis: -1.25609
skewness: -0.382004
entropy: 0.855306
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 104.649 (0.410388)
standard deviation: 47.9124 (0.187892)
kurtosis: -1.42075
skewness: -0.132388
entropy: 0.866895
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: 5184x3456+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Orientation: TopLeft
Properties:
date:create: 2015-10-15T15:59:10-05:00
date:modify: 2015-10-15T15:23:10-05:00
exif:ApertureValue: 4.625
exif:CustomRendered: 0
exif:DateTimeDigitized: 2014:06:09 11:03:51
exif:DateTimeOriginal: 2014:06:09 11:03:51
exif:ExposureBiasValue: 0
exif:ExposureMode: 0
exif:ExposureProgram: 2
exif:ExposureTime: 0.02
exif:Flash: 16
exif:FNumber: 5
exif:FocalLength: 39
exif:FocalPlaneResolutionUnit: 2
exif:FocalPlaneXResolution: 5728.18
exif:FocalPlaneYResolution: 5808.4
exif:ISOSpeedRatings: 160
exif:MeteringMode: 5
exif:SceneCaptureType: 0
exif:ShutterSpeedValue: 5.625
exif:SubSecTime: 49
exif:SubSecTimeDigitized: 49
exif:SubSecTimeOriginal: 49
exif:WhiteBalance: 0
signature: 7f36e95011972b62a089a6301539599d3f9a8de381a9bafe76dcee29284ee935
tiff:alpha: unspecified
tiff:artist:
tiff
tiff:endian: lsb
tiff:make: Canon
tiff:model: Canon EOS REBEL T3i
tiff:photometric: YCBCR
tiff:timestamp: 2014:06:09 11:03:51
xmp:Rating: 0
Profiles:
Profile-xmp: 8192 bytes
Artifacts:
filename: test
verbose: true
Tainted: False
Filesize: 22.84MB
Number pixels: 17.92M
Pixels per second: 255.94GB
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.9.1-10 Q16 x86_64 2015-07-26 http://www.imagemagick.org
identify: Photometric tag is missing, assuming data is YCbCr. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: SamplesPerPixel tag is missing, applying correct SamplesPerPixel value of 3. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: 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/856.
identify: Unknown field with tag 34864 (0x8830) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Unknown field with tag 34866 (0x8832) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Wrong data type 3 for "PixelXDimension"; tag ignored. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Wrong data type 3 for "PixelYDimension"; tag ignored. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Unknown field with tag 40965 (0xa005) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Unknown field with tag 42032 (0xa430) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Unknown field with tag 42033 (0xa431) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Unknown field with tag 42034 (0xa432) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Unknown field with tag 42036 (0xa434) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Unknown field with tag 42037 (0xa435) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Photometric tag is missing, assuming data is YCbCr. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: SamplesPerPixel tag is missing, applying correct SamplesPerPixel value of 3. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: 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/856.
identify: 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/856.
identify: Unknown field with tag 513 (0x201) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: Unknown field with tag 514 (0x202) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/856.
identify: TIFF directory is missing required "ImageLength" field. `MissingRequired' @ error/tiff.c/TIFFErrors/553.