Article View: comp.sys.mac
Article #4047Re: Mac pict <-> Sun raster converter
From: Todd
Date: Tue, 05 Sep 1989 16:46
Date: Tue, 05 Sep 1989 16:46
155 lines
7765 bytes
7765 bytes
In article <16793@pasteur.Berkeley.EDU> glen@cory.Berkeley.EDU (Glen Rosendale) writes:
>
>I know that I've heard discussion about a converter for mac pict to sunview
>raster files before, but I can't seem to find it by ftp anywhere. Can anybody
>steer me to it so I can display all my terrific Calvin & Hobbes pics on my
>new Sparcstation? My co-workers would also appreciate it...
>
>Thanks much,
>glen rosendale (glen@cory.berkeley.edu)
>-------------------------------------------------------------------------------
>| Glen Rosendale | UC Berkeley | glen@cory.berkeley.edu |
>| ++++++++++++++ | =========== | ---------------------- |
>-------------------------------------------------------------------------------
[lots of stuff below]
I have seen questions like this posted a number of times, so I
figure many people on the net might be interested in the following
info. One of my co-workers pulled a package called pbm (for Portable
BitMap I assume) from a host at MIT. I have also seen it posted to
other archives. It lets you port many picture formats to many others
by passing the bitmaps throught the "portable bitmap", a generic
bitmap. We have been using it quite a bit recently, and we really
appreciate Poskanzer's work.
I don't think it works on PICT files, but if you can convert your
picture to a MacPaint or TIFF format (most painting programs should do
this for you), you can use the conversion tools.
Like I said, I don't know the name of the computer where my co-worker
found pbm (plus about a zillion bitmaps-well maybe not a zillion), but
I bet you can find it on sumex-aim.stanford.edu or simtel20.
BTW, I am happy to see that somebody is actually using a Sparcstation.
It took us several months to get ours (came in 2 weeks ago), but the
disks haven't arrived. I am looking at my Sparcpaper-weight as I type
this on an IBM RT.
Todd Heberlein
heberlei@iris.ucdavis.edu 128.120.57.20
-----------------------------------------------------------------
[from the README file in the pbm archive]
Portable Bitmap Toolkit
Version of 24jan89
Previous distribution 31oct88
Included are a number of programs for converting various bitmap formats
to and from a portable format; plus some tools for manipulating the
portable bitmaps.
Changes since the comp.sources.misc distribution of 31oct88:
Added pbmreduce and pbmlife.
Added imgtopbm, tifftopbm, pcxtopbm, pbmtogo, mgrtopbm, and pbmtomgr.
Minor bugfix to pbmtolj.
Slight restructuring of most of the programs to use vastly less memory.
Fixed pbmtorast and rasttopbm to handle byte-swapped big-endian 386 boxes.
Changes since the X.V11R3 distribution of 31aug88:
The cbm format has been revised to support run-length encoding.
Pbmtops now does run-length encoding.
Major changes since the X.V11R2 distribution of 28mar88:
The pbm format now has a "magic number".
New conversion filters: brushtopbm, giftopbm, pbmtolj, pbmtomacp,
pbmtoxwd, and pbmtox10wd.
Icontopbm converter has a better parser -- it knows to skip over
any extraneous comments at the beginning of the icon file.
Pbmtops generates a different PostScript wrapper program -- it should
handle huge bitmaps better.
Xwdtopbm now handles byte-swapping correctly.
Pbmmake takes a flag to specify the color of the new bitmap.
Pbmpaste now implements 'or', 'and', and 'xor' operations as well
as the default 'replace'.
Files in this distribution:
README this
FORMATS descriptions of the various bitmap formats
Makefile guess
brushtopbm.c convert from Xerox doodle brushes to portable bitmap
cbmtopbm.c convert from compact bitmap to portable bitmap
giftopbm.c convert from GIF to portable bitmap
icontopbm.c convert from Sun icon to portable bitmap
imgtopbm.c convert from GEM .img format to portable bitmap
macptopbm.c convert from MacPaint to portable bitmap
mgrtopbm.c convert from MGR format to portable bitmap
pcxtopbm.c convert from PC paintbrush format to portable bitmap
rasttopbm.c convert from Sun raster to portable bitmap
tifftopbm.c convert from TIFF format to portable bitmap
xbmtopbm.c convert from X10 or X11 bitmap to portable bitmap
xwdtopbm.c convert from X10 or X11 window dump to portable bitmap
xxxtopbm.c convert from UNKNOWN BITMAP to portable bitmap
pbmtoascii.c convert from portable bitmap to ASCII graphic form
pbmtocbm.c convert from portable bitmap to compact bitmap
pbmtogo.c convert from portable bitmap to GraphOn graphics
pbmtoicon.c convert from portable bitmap to Sun icon
pbmtolj.c convert from portable bitmap to HP LaserJet
pbmtomacp.c convert from portable bitmap to MacPaint
pbmtomgr.c convert from portable bitmap to MGR format
pbmtops.c convert from portable bitmap to PostScript
pbmtoptx.c convert from portable bitmap to Printronix
pbmtorast.c convert from portable bitmap to Sun raster
pbmtoxbm.c convert from portable bitmap to X11 bitmap
pbmtox10bm.c convert from portable bitmap to X10 bitmap
pbmtoxwd.c convert from portable bitmap to X11 window dump
pbmtox10wd.c convert from portable bitmap to X10 window dump
pbmcatlr.c concatenate portable bitmaps left to right
pbmcattb.c concatenate portable bitmaps top to bottom
pbmcrop.c crop a portable bitmap
pbmcut.c cut a rectangle out of a portable bitmap
pbmenlarge.c enlarge a portable bitmap N times
pbmfliplr.c flip a portable bitmap left for right
pbmfliptb.c flip a portable bitmap top for bottom
pbminvert.c invert a portable bitmap
pbmlife.c apply Conway's rules of Life to a portable bitmap
pbmmake.c create a blank bitmap of a specified size
pbmpaste.c paste a rectangle into a portable bitmap
pbmreduce.c reduce a portable bitmap N times, using Floyd-Steinberg
pbmtrnspos.c transpose a portable bitmap x for y
libpbm[1-5].c a few utility routines
pbm.h header file for libpbm
libpbm.h internal header file for libpbm
macp.h definitions for MacPaint files
tiff.h definitions for TIFF files
x10wd.h definitions for X10 window dumps
x11wd.h definitions for X11 window dumps
bmaliases csh script to make aliases for converting formats
*.1 manual entries for all of the tools
pbm.5 manual entry for the pbm format
bitreverse.h useful include file
Unpack the files, edit Makefile and change the options to suit,
make, and enjoy! Note that if you're not on a Sun, you won't be
able to compile rasttopbm and pbmtorast.
I've tested this stuff under 4.2 BSD, 4.3 BSD, and System V rel 2, and
on Sun 3's, Sun 386's, and Vaxen. Nevertheless, I'm sure bugs remain.
Feedback is welcome - send bug reports, enhancements, checks, money
orders, etc. to the addresses below.
Jef Poskanzer
jef@helios.ee.lbl.gov
{ucbvax, lll-crg, sun!pacbell, apple, hplabs}!well!pokey
Technical Details
Message-ID:
<5264@ucdavis.ucdavis.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!uakari.primate.wisc.edu!ames!bionet!agate!ucbvax!ucdavis!iris!heberleiReferences:
<16793@pasteur.Berkeley.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!uakari.primate.wisc.edu!ames!bionet!agate!ucbvax!ucdavis!iris!heberlei From: heberlei@iris.ucdavis.edu (Todd) Newsgroups: comp.sys.mac Subject: Re: Mac pict <-> Sun raster converter Message-ID: <5264@ucdavis.ucdavis.edu> Date: 5 Sep 89 16:46:36 GMT References: <16793@pasteur.Berkeley.EDU> Sender: uucp@ucdavis.ucdavis.edu Reply-To: heberlei@iris.ucdavis.edu (Todd) Organization: U.C. Davis - Department of Electrical Engineering and Computer Science Lines: 155