Boost logo

Boost Users :

From: Josue Gomes (josue.gomes.honeypot_at_[hidden])
Date: 2007-05-16 14:27:34


Hi,

I'm trying to use GIL to read a Group 4 TIFF file. Below is the output
of tiffinfo for this file.

With this code:

    gray8_image_t img;
    tiff_read_image("killer2-tiffg4.tif", img);

I'm getting the following exception:

    class std::ios_base::failure: tiff_read_view: input view type is
incompatible
    with the image type

---------------------------------------
tiffinfo killer2-tiffg4.tig

TIFF Directory at offset 0x8 (8)
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 1728 Image Length: 2292
  Resolution: 204, 196 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 2292
  Planar Configuration: single image plane
  Page Number: 0-0
  Software: GPL Ghostscript 8.56
  DateTime: 2007:05:04 14:17:27
  Group 4 Options: (0 = 0x0)
TIFF Directory at offset 0x225ce (140750)
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 1728 Image Length: 2292
  Resolution: 204, 196 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 2292
  Planar Configuration: single image plane
  Page Number: 1-0
  Software: GPL Ghostscript 8.56
  DateTime: 2007:05:04 14:17:29
  Group 4 Options: (0 = 0x0)
---------------------------------------

Ideas?

regards,
josuegomes at gmail dot com


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net