AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 1994

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



1994.10.17 17:37 "Bug in tiff2ps?", by Alberto Accomazzi

I'm having trouble trying to create PostScript level 2 files from TIFF
G4 files created with the latest TIFF library (3.3beta020).
The evidence seems to suggest that something wrong happens when the
input TIFF file has more than 1 row per strip.  Here is some more
info (apologies if this looks confusing):

alberto/cfa0-175: tiffinfo tmp.g4
TIFF Directory at offset 0x34ac
  Image Width: 323 Image Length: 82
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4 facsimile encoding
  Photometric Interpretation: min-is-black
  FillOrder: msb-to-lsb
  Document Name: "tmp.pbm"
  Image Description: "converted PNM file"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 1
  Planar Configuration: single image plane
alberto/cfa0-176: tiffinfo tmp1.g4
TIFF Directory at offset 0x2092
  Image Width: 323 Image Length: 82
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4 facsimile encoding
  Photometric Interpretation: min-is-black
  FillOrder: msb-to-lsb
  Document Name: "tmp.pbm"
  Image Description: "converted PNM file"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 199
  Planar Configuration: single image plane
alberto/cfa0-177: tiffcmp -lt tmp.g4 tmp1.g4
RowsPerStrip: 1 199
alberto/cfa0-178: tiff2ps -2 tmp1.g4 | gs -
Initializing... Warning: failed to allocate 5x5x5 RGB cube.
done.
Ghostscript 2.6.1 (5/28/93)
Copyright (C) 1990-1993 Aladdin Enterprises, Menlo Park, CA.
  All rights reserved.
Ghostscript comes with NO WARRANTY: see the file COPYING for details.
alberto/cfa0-179: tiff2ps -2 tmp.g4 | gs -
Initializing... Warning: failed to allocate 5x5x5 RGB cube.
done.
Ghostscript 2.6.1 (5/28/93)
Copyright (C) 1990-1993 Aladdin Enterprises, Menlo Park, CA.
  All rights reserved.
Ghostscript comes with NO WARRANTY: see the file COPYING for details.
Error: /ioerror in --image--
Operand stack:
    -filetype-  -filetype- 
    (R\223$R\222\245$\244\222\245J\252\222\222\252\225%"T\244\251\)R\222\242\245\)*\224IUT\221\)$\222H\222H\245@)
Execution stack:
    %interp_exit  --nostringval--  --nostringval--  --nostringval--  false 
    --nostringval--  --nostringval--  --nostringval--  --nostringval--
Dictionary stack:
    531/547  0/20  5/200  0/100
Ghostscript: Unrecoverable error, exit code 1


I get the same results when trying to send the file to the printer:
the TIFF file with all the data contained in 1 row comes out, the
other one doesn't.

The problem doesn't seem to be the ASCII85 encoding, since files
created with tiff2ps -28 have the same problem.  If I force PS level 1
output, everything goes well.

So it looks like something is going wrong when the code has to read
more than one strip without decoding the data...  any ideas, Sam?
System: Sunos 4.1.3, gcc 2.5.7.

Thank you very much for your help.


- Alberto

==========
Alberto Accomazzi              Harvard-Smithsonian Center for Astrophysics
alberto@cfa.harvard.edu        60 Garden Street, MS 39
(617) 495-7076                 Cambridge, MA  02138  USA