glen@cory.Berkeley.EDU (Glen Rosendale) (09/02/89)
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 | | ++++++++++++++ | =========== | ---------------------- | -------------------------------------------------------------------------------
heberlei@iris.ucdavis.edu (Todd) (09/05/89)
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
paisley@cme.nist.gov (Scott Paisley) (09/06/89)
> info. One of my co-workers pulled a package called pbm (for Portable > In article <5264@ucdavis.ucdavis.edu> heberlei@iris.ucdavis.edu (Todd) writes: > BitMap I assume) from a host at MIT. I have also seen it posted to The host is expo.lcs.mit.edu and the package can be found in the contrib directory. > 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. I had the older version of pbm and got real excited when I saw that the new version support the TIFF format. My problem. We would like to use our AppleScanner to create images on the sun. Just scan the image in, output to a tiff file, port the the sun and run tifftopbm on the file right? Nope. tifftopbm dumps core when reading in the tiff file. *sniff* I uploaded the file using ftp with 'binary' on. (Not macbinary) I also tried and ascii upload but that didn't work either. Has anyone gotton a tiff (or pict for that matter) file from the mac to a sunraster? How did you do it? Thanks for any help in advance. -- "If a tree falls in the forest, will another one grow in its place?" Scott Paisley paisley@cme.nbs.gov ..!uunet!cme-durer!paisley