Article View: adobe.postscript.programming
Article #397Display external TIFF file revisited
From: asproat1
Date: Thu, 02 Aug 2007 05:14
Date: Thu, 02 Aug 2007 05:14
112 lines
4082 bytes
4082 bytes
In early May, I posted a question about using postscript to read and display an external file in TIFF format. Ken Sharp was brilliant and kind enough to post his code to do just that. I have finally gotten around to attempting to implement it and am able to prevent it from erroring out but no image is displayed. This happens with all the TIFF files I have tried. Here's how I'm calling Ken's function: 300 300 500 500 (clouds.TIF) TiffPrint showpage And here is the debug output: (Tiff file is Intel format) NewSubFileType 2 ImageWidth 850 ImageLength 1100 BitsPerSample 1 Compression 32773 PhotometricInterpretation 0 FillOrder 1 StripOffsets 338 Orientation 1 SamplesPerPixel 1 RowsPerStrip 1100 StripByteCounts 28743 XResolution 100.0 YResolution 100.0 PlanarConfiguration 1 Group3Options 0 ResolutionUnit 2 PageNumber 0 Software 65 70 80 76 32 71 104 111 115 116 115 99 114 105 112 116 32 56 46 48 48 0 DateTime 50 48 48 51 58 48 53 58 50 54 32 48 48 58 48 55 58 52 56 0 NewSubFileType 2 ImageWidth 850 ImageLength 1100 BitsPerSample 1 Compression 32773 PhotometricInterpretation 0 FillOrder 1 StripOffsets 29412 Orientation 1 SamplesPerPixel 1 RowsPerStrip 1100 StripByteCounts 34586 XResolution 100.0 YResolution 100.0 PlanarConfiguration 1 Group3Options 0 ResolutionUnit 2 PageNumber 1 Software 65 70 80 76 32 71 104 111 115 116 115 99 114 105 112 116 32 56 46 48 48 0 DateTime 50 48 48 51 58 48 53 58 50 54 32 48 48 58 48 55 58 52 57 0 NewSubFileType 2 ImageWidth 850 ImageLength 1100 BitsPerSample 1 Compression 32773 PhotometricInterpretation 0 FillOrder 1 StripOffsets 64328 Orientation 1 SamplesPerPixel 1 RowsPerStrip 1100 StripByteCounts 11305 XResolution 100.0 YResolution 100.0 PlanarConfiguration 1 Group3Options 0 ResolutionUnit 2 PageNumber 2 Software 65 70 80 76 32 71 104 111 115 116 115 99 114 105 112 116 32 56 46 48 48 0 DateTime 50 48 48 51 58 48 53 58 50 54 32 48 48 58 48 55 58 53 48 0 (Tiff dictionary) PageNumber (--nostringval--) StripOffsets (--nostringval--) LastLength (20) YResolution (--nostringval--) ImageLength (--nostringval--) LastOffset (64300) StripByteCounts (--nostringval--) ImageWidth (--nostringval--) Orientation (--nostringval--) ResolutionUnit (--nostringval--) LastTag (306) PhotometricInterpretation (--nostringval--) RowsPerStrip (--nostringval--) DateTime (--nostringval--) SavePos (64240) Group3Options (--nostringval--) Compression (--nostringval--) SamplesPerPixel (--nostringval--) FillOrder (--nostringval--) BitsPerSample (--nostringval--) LastArray (--nostringval--) PlanarConfiguration (--nostringval--) NewSubFileType (--nostringval--) Software (--nostringval--) XResolution (--nostringval--) LastType (2) -dict- (display image now) If Ken or anyone else who might have used this code to do this can see what I'm doing wrong and can let me know, I would GREATLY appreciate it.
Technical Details
Message-ID:
<1186031674.974022.290280@m37g2000prh.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m37g2000prh.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,e3f9e882026357b4,start X-Google-Attributes: gid10c61a,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m37g2000prh.googlegroups.com!not-for-mail From: asproat1@hotmail.com Newsgroups: adobe.postscript.programming Subject: Display external TIFF file revisited Date: Thu, 02 Aug 2007 05:14:34 -0000 Organization: http://groups.google.com Lines: 113 Message-ID: <1186031674.974022.290280@m37g2000prh.googlegroups.com> NNTP-Posting-Host: 71.244.2.218 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1186031675 12706 127.0.0.1 (2 Aug 2007 05:14:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 2 Aug 2007 05:14:35 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m37g2000prh.googlegroups.com; posting-host=71.244.2.218; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0