Read error on strip when trying to convert tif to jpg

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
cybercsk
Posts: 1
Joined: 2016-02-02T04:04:20-07:00
Authentication code: 1151

Read error on strip when trying to convert tif to jpg

Post by cybercsk » 2016-02-02T05:02:34-07:00

Hi,

when I try to convert a tif file to jpeg I receive the following error:

Code: Select all

Read error on strip 3773; got 12638 bytes, expected 16968. `TIFFFillStrip'
with the hint

Code: Select all

Coder (TIFF) generated an image despite an error (450), notify the developers
So I do ;-)

The convert util exits with exitlevel 1, although a good outputfile is created.

Please, find a sample file here: https://www.dropbox.com/s/rnrnbtn4xjjfm ... 0.tif?dl=0 .

Below you find the whole debug output.

Kind regards

Code: Select all

2016-02-02T12:02:19+01:00 0:00.228 0.016u 6.9.3 Configure convert.exe[14064]: utility.c/ExpandFilenames/940/Configure
  Command line: C:\Program Files (x86)\ImageMagick-6.9.3-Q16\convert {_DSC4560.tif} {-auto-orient} {-quality} {95} {-debug} {All} {_DSC4560.jpg}
2016-02-02T12:02:19+01:00 0:00.269 0.016u 6.9.3 Policy convert.exe[14064]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Read; pattern="_DSC4560.tif" ...
2016-02-02T12:02:19+01:00 0:00.323 0.016u 6.9.3 Blob convert.exe[14064]: blob.c/OpenBlob/2594/Blob
    read 3 magic header bytes
2016-02-02T12:02:19+01:00 0:00.340 0.016u 6.9.3 Resource convert.exe[14064]: resource.c/AcquireMagickResource/312/Resource
  Map: 64.06MB/61.09MiB/7.8509GiB
2016-02-02T12:02:19+01:00 0:00.363 0.016u 6.9.3 Resource convert.exe[14064]: resource.c/RelinquishMagickResource/1004/Resource
  Map: 64.06MB/0B/7.8509GiB
2016-02-02T12:02:19+01:00 0:00.382 0.016u 6.9.3 Cache convert.exe[14064]: cache.c/DestroyPixelCache/996/Cache
  destroy
2016-02-02T12:02:19+01:00 0:00.392 0.016u 6.9.3 Configure convert.exe[14064]: nt-base.c/NTRegistryKeyLookup/1946/Configure
  SOFTWARE\ImageMagick\6.9.3\Q:16
2016-02-02T12:02:19+01:00 0:00.405 0.016u 6.9.3 Configure convert.exe[14064]: nt-base.c/NTRegistryKeyLookup/1967/Configure
  ConfigurePath
2016-02-02T12:02:19+01:00 0:00.419 0.016u 6.9.3 Configure convert.exe[14064]: configure.c/GetConfigureOptions/679/Configure
  Searching for configure file: "C:\Program Files (x86)\ImageMagick-6.9.3-Q16\magic.xml"
2016-02-02T12:02:19+01:00 0:00.447 0.016u 6.9.3 Configure convert.exe[14064]: configure.c/GetConfigureOptions/679/Configure
  Searching for configure file: "C:\Users\User\AppData\Local\ImageMagick\magic.xml"
2016-02-02T12:02:19+01:00 0:00.470 0.016u 6.9.3 Configure convert.exe[14064]: magic.c/LoadMagicCache/789/Configure
  Loading magic configure file "C:\Program Files (x86)\ImageMagick-6.9.3-Q16\magic.xml" ...
2016-02-02T12:02:19+01:00 0:00.489 0.016u 6.9.3 Policy convert.exe[14064]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Coder; rights=Read; pattern="TIFF" ...
2016-02-02T12:02:19+01:00 0:00.504 0.031u 6.9.3 Policy convert.exe[14064]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Read; pattern="_DSC4560.tif" ...
2016-02-02T12:02:19+01:00 0:00.535 0.031u 6.9.3 Blob convert.exe[14064]: blob.c/OpenBlob/2594/Blob
    read 3 magic header bytes
2016-02-02T12:02:19+01:00 0:00.578 0.047u 6.9.3 Cache convert.exe[14064]: cache.c/DestroyPixelCache/996/Cache
  destroy
2016-02-02T12:02:19+01:00 0:00.597 0.062u 6.9.3 Policy convert.exe[14064]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Read; pattern="_DSC4560.tif" ...
2016-02-02T12:02:19+01:00 0:00.639 0.062u 6.9.3 Blob convert.exe[14064]: blob.c/OpenBlob/2594/Blob
    read 3 magic header bytes
2016-02-02T12:02:19+01:00 0:00.654 0.062u 6.9.3 Resource convert.exe[14064]: resource.c/AcquireMagickResource/312/Resource
  Map: 64.06MB/61.09MiB/7.8509GiB
2016-02-02T12:02:19+01:00 0:00.696 0.062u 6.9.3 Configure convert.exe[14064]: nt-base.c/NTRegistryKeyLookup/1946/Configure
  SOFTWARE\ImageMagick\6.9.3\Q:16
2016-02-02T12:02:19+01:00 0:00.718 0.062u 6.9.3 Configure convert.exe[14064]: nt-base.c/NTRegistryKeyLookup/1967/Configure
  ConfigurePath
2016-02-02T12:02:19+01:00 0:00.738 0.062u 6.9.3 Locale convert.exe[14064]: locale.c/GetLocaleOptions/825/Locale
  Searching for locale file: "C:\Program Files (x86)\ImageMagick-6.9.3-Q16\locale.xml"
2016-02-02T12:02:19+01:00 0:00.771 0.062u 6.9.3 Locale convert.exe[14064]: locale.c/GetLocaleOptions/825/Locale
  Searching for locale file: "C:\Users\User\AppData\Local\ImageMagick\locale.xml"
2016-02-02T12:02:19+01:00 0:00.789 0.062u 6.9.3 Configure convert.exe[14064]: locale.c/LoadLocaleCache/1176/Configure
  Loading locale configure file "C:\Program Files (x86)\ImageMagick-6.9.3-Q16\locale.xml" ...
2016-02-02T12:02:19+01:00 0:00.812 0.062u 6.9.3 Configure convert.exe[14064]: nt-base.c/NTRegistryKeyLookup/1946/Configure
  SOFTWARE\ImageMagick\6.9.3\Q:16
2016-02-02T12:02:19+01:00 0:00.827 0.062u 6.9.3 Configure convert.exe[14064]: nt-base.c/NTRegistryKeyLookup/1967/Configure
  ConfigurePath
2016-02-02T12:02:19+01:00 0:00.841 0.062u 6.9.3 Locale convert.exe[14064]: locale.c/GetLocaleOptions/825/Locale
  Searching for locale file: "C:\Program Files (x86)\ImageMagick-6.9.3-Q16\english.xml"
2016-02-02T12:02:20+01:00 0:00.873 0.062u 6.9.3 Locale convert.exe[14064]: locale.c/GetLocaleOptions/825/Locale
  Searching for locale file: "C:\Users\User\AppData\Local\ImageMagick\english.xml"
2016-02-02T12:02:20+01:00 0:00.894 0.062u 6.9.3 Configure convert.exe[14064]: locale.c/LoadLocaleCache/1176/Configure
  Loading locale configure file "C:\Program Files (x86)\ImageMagick-6.9.3-Q16\english.xml" ...
2016-02-02T12:02:20+01:00 0:00.923 0.062u 6.9.3 Exception convert.exe[14064]: tiff.c/TIFFWarnings/891/Exception
  Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag'
2016-02-02T12:02:20+01:00 0:00.940 0.062u 6.9.3 Exception convert.exe[14064]: tiff.c/TIFFWarnings/891/Exception
  Bogus "StripByteCounts" field, ignoring and calculating from imagelength. `TIFFReadDirectory'
2016-02-02T12:02:20+01:00 0:00.959 0.062u 6.9.3 Coder convert.exe[14064]: tiff.c/ReadTIFFImage/1280/Coder
  Geometry: 5656x3775
2016-02-02T12:02:20+01:00 0:00.973 0.062u 6.9.3 Coder convert.exe[14064]: tiff.c/ReadTIFFImage/1282/Coder
  Interlace: 1
2016-02-02T12:02:20+01:00 0:00.985 0.062u 6.9.3 Coder convert.exe[14064]: tiff.c/ReadTIFFImage/1284/Coder
  Bits per sample: 8
2016-02-02T12:02:20+01:00 0:00.997 0.062u 6.9.3 Coder convert.exe[14064]: tiff.c/ReadTIFFImage/1286/Coder
  Min sample value: 0
2016-02-02T12:02:20+01:00 0:01.011 0.078u 6.9.3 Coder convert.exe[14064]: tiff.c/ReadTIFFImage/1288/Coder
  Max sample value: 255
2016-02-02T12:02:20+01:00 0:01.024 0.078u 6.9.3 Coder convert.exe[14064]: tiff.c/ReadTIFFImage/1290/Coder
  Photometric interpretation: RGB
2016-02-02T12:02:20+01:00 0:01.037 0.078u 6.9.3 Resource convert.exe[14064]: resource.c/AcquireMagickResource/312/Resource
  Width: 5.66KB/5.66KB/214.7MB
2016-02-02T12:02:20+01:00 0:01.053 0.078u 6.9.3 Resource convert.exe[14064]: resource.c/AcquireMagickResource/312/Resource
  Height: 3.77KB/3.77KB/214.7MB
2016-02-02T12:02:20+01:00 0:01.068 0.078u 6.9.3 Resource convert.exe[14064]: resource.c/AcquireMagickResource/312/Resource
  Area: 170.8MB/170.8MB/8.4298GB
2016-02-02T12:02:20+01:00 0:01.081 0.078u 6.9.3 Resource convert.exe[14064]: resource.c/AcquireMagickResource/312/Resource
  Memory: 170.8MB/162.9MiB/3.9254GiB
2016-02-02T12:02:20+01:00 0:01.096 0.078u 6.9.3 Cache convert.exe[14064]: cache.c/OpenPixelCache/3626/Cache
  open _DSC4560.tif[0] (Heap Memory, 5656x3775 162.9MiB)
2016-02-02T12:02:20+01:00 0:01.109 0.078u 6.9.3 Coder convert.exe[14064]: tiff.c/ReadTIFFImage/1303/Coder
  Image depth: 8
2016-02-02T12:02:20+01:00 0:01.121 0.078u 6.9.3 Exception convert.exe[14064]: tiff.c/TIFFErrors/557/Exception
  Can not read TIFF directory count. `TIFFFetchDirectory'
2016-02-02T12:02:20+01:00 0:01.136 0.078u 6.9.3 Exception convert.exe[14064]: tiff.c/TIFFErrors/557/Exception
  Failed to read custom directory at offset 64082740. `TIFFReadCustomDirectory'
2016-02-02T12:02:20+01:00 0:01.154 0.078u 6.9.3 Exception convert.exe[14064]: tiff.c/TIFFWarnings/891/Exception
  Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag'
2016-02-02T12:02:20+01:00 0:01.172 0.078u 6.9.3 Exception convert.exe[14064]: tiff.c/TIFFWarnings/891/Exception
  Bogus "StripByteCounts" field, ignoring and calculating from imagelength. `TIFFReadDirectory'
2016-02-02T12:02:27+01:00 0:07.918 0.406u 6.9.3 Exception convert.exe[14064]: tiff.c/TIFFErrors/557/Exception
  Read error on strip 3773; got 12638 bytes, expected 16968. `TIFFFillStrip'
2016-02-02T12:02:27+01:00 0:07.967 0.437u 6.9.3 Resource convert.exe[14064]: resource.c/RelinquishMagickResource/1004/Resource
  Map: 64.06MB/0B/7.8509GiB
2016-02-02T12:02:27+01:00 0:07.982 0.437u 6.9.3 Exception convert.exe[14064]: constitute.c/ReadImage/564/Exception
  Coder (TIFF) generated an image despite an error (450), notify the developers
2016-02-02T12:02:27+01:00 0:08.003 0.437u 6.9.3 Policy convert.exe[14064]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Coder; rights=Write; pattern="JPG" ...
2016-02-02T12:02:27+01:00 0:08.018 0.437u 6.9.3 Policy convert.exe[14064]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Write; pattern="_DSC4560.jpg" ...
2016-02-02T12:02:27+01:00 0:08.691 0.437u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteJPEGImage/2211/Coder
  Image resolution: 300,300
2016-02-02T12:02:27+01:00 0:08.710 0.437u 6.9.3 Resource convert.exe[14064]: resource.c/AcquireMagickResource/312/Resource
  Memory: 64.05MB/224MiB/3.9254GiB
2016-02-02T12:02:27+01:00 0:08.731 0.437u 6.9.3 Resource convert.exe[14064]: resource.c/RelinquishMagickResource/1004/Resource
  Memory: 64.05MB/162.9MiB/3.9254GiB
2016-02-02T12:02:27+01:00 0:08.749 0.452u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteJPEGImage/2292/Coder
  Interlace: non-progressive
2016-02-02T12:02:27+01:00 0:08.764 0.452u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteJPEGImage/2306/Coder
  Quality: 95
2016-02-02T12:02:27+01:00 0:08.777 0.452u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteJPEGImage/2533/Coder
  Storage class: DirectClass
2016-02-02T12:02:27+01:00 0:08.790 0.452u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteJPEGImage/2535/Coder
  Depth: 8
2016-02-02T12:02:27+01:00 0:08.800 0.468u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteJPEGImage/2541/Coder
  Number of colors: unspecified
2016-02-02T12:02:27+01:00 0:08.811 0.468u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteJPEGImage/2543/Coder
  JPEG data precision: 8
2016-02-02T12:02:27+01:00 0:08.823 0.468u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteJPEGImage/2598/Coder
  Image colorspace is RGB
2016-02-02T12:02:27+01:00 0:08.833 0.468u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteJPEGImage/2600/Coder
  Sampling factors: 1x1,1x1,1x1
2016-02-02T12:02:27+01:00 0:08.844 0.468u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteProfile/2002/Coder
  8bim profile: 8968 bytes
2016-02-02T12:02:28+01:00 0:08.855 0.468u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteProfile/2002/Coder
  icc profile: 3144 bytes
2016-02-02T12:02:28+01:00 0:08.865 0.468u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteProfile/2002/Coder
  iptc profile: 7 bytes
2016-02-02T12:02:28+01:00 0:08.877 0.468u 6.9.3 Coder convert.exe[14064]: jpeg.c/WriteProfile/2002/Coder
  xmp profile: 16067 bytes
2016-02-02T12:02:28+01:00 0:08.889 0.468u 6.9.3 Resource convert.exe[14064]: resource.c/AcquireMagickResource/312/Resource
  Memory: 17KB/162.9MiB/3.9254GiB
2016-02-02T12:02:29+01:00 0:09.918 1.482u 6.9.3 Resource convert.exe[14064]: resource.c/RelinquishMagickResource/1004/Resource
  Memory: 17KB/162.9MiB/3.9254GiB
2016-02-02T12:02:29+01:00 0:10.585 1.482u 6.9.3 Cache convert.exe[14064]: cache.c/DestroyPixelCache/996/Cache
  destroy _DSC4560.tif[0]
2016-02-02T12:02:29+01:00 0:10.627 1.513u 6.9.3 Resource convert.exe[14064]: resource.c/RelinquishMagickResource/1004/Resource
  Memory: 170.8MB/0B/3.9254GiB
convert.exe: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/891.
convert.exe: Bogus "StripByteCounts" field, ignoring and calculating from imagelength. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/891.
convert.exe: Can not read TIFF directory count. `TIFFFetchDirectory' @ error/tiff.c/TIFFErrors/557.
convert.exe: Failed to read custom directory at offset 64082740. `TIFFReadCustomDirectory' @ error/tiff.c/TIFFErrors/557.
convert.exe: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/891.
convert.exe: Bogus "StripByteCounts" field, ignoring and calculating from imagelength. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/891.
convert.exe: Read error on strip 3773; got 12638 bytes, expected 16968. `TIFFFillStrip' @ error/tiff.c/TIFFErrors/557.

Post Reply