Path: utzoo!utgpu!watmath!clyde!att!rutgers!mit-eddie!uw-beaver!rice!sun-spots-request
From: uflorida!ucf-cs!sdgsun!paul@mailrus.cc.umich.edu (Paul Emerson)
Newsgroups: comp.sys.sun
Subject: Re: Tiff-to-Sunraster revisted
Message-ID: <8811171542.AA09449@sdgsun.com>
Date: 1 Dec 88 05:58:15 GMT
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 21
Approved: Sun-Spots@rice.edu
Original-Date: Thu, 17 Nov 88 10:42:03 EST
X-Sun-Spots-Digest: Volume 7, Issue 30, message 3 of 12

I must have missed the discussion of a TIFF-to-SunRaster filter.  But I
had a need, (background images for Sunview) for such a filter, so I wrote
one.  My version is really TIFF to PBM, but it is easy to just pipeline
the commands: "tiff2pbm Tifffilename | pbmtorast > SunRasterFile".  This
program doesn't fully implement all the feature of TIFF, but it will
convert a TIFF file (single bit plane) created on a Mac.  I have used it
to convert a TIFF file 1152 x 1850 from ThunderScan.  Although I believe
Thunderscan has a bug in it's TIFF converter function, for very large
images, such as the one mentioned.  I had to tweek the image size to the
correct values before running the TIFF file through my program.  I haven't
had any problem with other images.  I will post this program in it's
current state if anyone is interested.  It may be a good starting point
for others,(or just trash).  I knocked it off very fast, and haven't
gotten back to it, but it does suit my needs at this time.

Paul
---
Paul J. Emerson                           Software Design Group, Inc.  
Manager, Software Development             800 Trafalgar Ct. Suite 340
UUCP:ucf-cs!sdgsun!paul                   Maitland, FL 32751
CIS: 72355,171                            (407) 660-0006