We are seeing a problem which I suspect is a manifestation of the same
bug.  I have an image called 'scan.tif' which appears perfectly normal
when viewed in eog or Gimp.  When I try to convert it to PNG with
graphicsmagick I get the following error:

$ gm convert scan.tif scan.png
gm convert: scan.tif: Bad code word at line 63 of strip 19 (x 1535).
(Fax4Decode).

The conversion command and the source TIFF are part of our application's
automated regression test suite.  This error appeared following the
update of libtiff4 to 3.9.4-5+squeeze2

The source TIFF file was sent to us electronically from a document
scanning bureau some years ago.

I can supply the image directly to a developer if it would help but
would prefer not to attach to a public bug report due to confidential
nature of the document in the scan.

ImageMagick also now complains about this file:

$ identify -verbose scan.tif
Image: scan.tif
  Format: TIFF (Tagged Image File Format)
  Class: DirectClass
  Geometry: 1536x2370+0+0
  Resolution: 200x200
  Print size: 7.68x11.85
  Units: PixelsPerInch
  Type: Bilevel
  Base type: Bilevel
  Endianess: MSB
  Colorspace: RGB
  Depth: 1-bit
  Channel depth:
    gray: 1-bit
  Channel statistics:
    Gray:
      min: 0 (0)
      max: 1 (1)
      mean: 0.91813 (0.91813)
      standard deviation: 0.274167 (0.274167)
      kurtosis: 7.30366
      skewness: -3.05019
  Histogram:
    298033: (  0,  0,  0) #000000 black
   3342287: (255,255,255) #FFFFFF white
  Rendering intent: Undefined
  Interlace: None
  Background color: white
  Border color: rgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Compose: Over
  Page geometry: 1536x2370+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: Group4
  Orientation: TopLeft
  Properties:
    date:create: 2011-06-14T13:41:21+12:00
    date:modify: 2011-06-14T13:41:21+12:00
    signature: ba226183d39e5667578648d34a557bc7f5f65cb5623652aadc5df338c6627035
    tiff:document: /home/grant/eec/00020876.TIFF
    tiff:photometric: min-is-white
    tiff:rows-per-strip: 64
  Artifacts:
    verbose: true
  Tainted: False
  Filesize: 49.3KB
  Number pixels: 3.64MB
  Pixels per second: 40.45MB
  User time: 0.060u
  Elapsed time: 0:01.089
  Version: ImageMagick 6.6.0-4 2010-11-16 Q16 http://www.imagemagick.org
identify: scan.tif: Bad code word at line 4 of strip 19 (x 0). `Fax4Decode' @ 
warning/tiff.c/TIFFErrors/493.
identify: scan.tif: Premature EOL at line 4 of strip 19 (got 0, expected 1536). 
`Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Bad code word at line 7 of strip 19 (x 12). `Fax4Decode' @ 
warning/tiff.c/TIFFErrors/493.
identify: scan.tif: Premature EOL at line 7 of strip 19 (got 12, expected 
1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Line length mismatch at line 10 of strip 19 (got 1564, 
expected 1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Line length mismatch at line 18 of strip 19 (got 1540, 
expected 1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Line length mismatch at line 24 of strip 19 (got 1537, 
expected 1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Line length mismatch at line 28 of strip 19 (got 1537, 
expected 1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Line length mismatch at line 29 of strip 19 (got 1552, 
expected 1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Line length mismatch at line 30 of strip 19 (got 1574, 
expected 1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Line length mismatch at line 31 of strip 19 (got 1537, 
expected 1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Bad code word at line 32 of strip 19 (x 33). `Fax4Decode' @ 
warning/tiff.c/TIFFErrors/493.
identify: scan.tif: Premature EOL at line 32 of strip 19 (got 33, expected 
1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Line length mismatch at line 33 of strip 19 (got 1538, 
expected 1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Bad code word at line 50 of strip 19 (x 1535). `Fax4Decode' 
@ warning/tiff.c/TIFFErrors/493.
identify: scan.tif: Premature EOL at line 50 of strip 19 (got 1535, expected 
1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Line length mismatch at line 52 of strip 19 (got 1542, 
expected 1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Line length mismatch at line 59 of strip 19 (got 1537, 
expected 1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.
identify: scan.tif: Bad code word at line 63 of strip 19 (x 1535). `Fax4Decode' 
@ warning/tiff.c/TIFFErrors/493.
identify: scan.tif: Premature EOL at line 63 of strip 19 (got 1535, expected 
1536). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.


Regards
Grant




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to