barnett@grymoire.crd.ge.com (Bruce Barnett) (02/28/91)
I am trying to get a Sun rasterimage file onto a Macintosh, so I can include it into a Macintosh Document. Converting it into a PBM file and then using pbmtomacp didn't quite do enough. It looks like the pbmtomacp is broken. There is code to determine the program name, and store it in a variable "name", but the variable is never used after setting the value. I transferred the file onto the Mac using FTP, binary, with MacBinary enabled, but the program does not retain the right attributes to make is usable in a Desktop Puslishing program like MacPaint. I guess I'll try to decypher MacBinary format myself. I have the specs in a manual. Anyone have an easy solution to save me from coding up a new one? -- Bruce G. Barnett barnett@crd.ge.com uunet!crdgw1!barnett
george@electro.com (George Reimer) (02/28/91)
In article <BARNETT.91Feb27112717@grymoire.crd.ge.com> barnett@crdgw1.ge.com writes: > >I am trying to get a Sun rasterimage file onto a Macintosh, so I can >include it into a Macintosh Document...... > > .... the program does not retain the right attributes to make >is usable in a Desktop Puslishing program like MacPaint. > I came across the very same problem this week and am in the process of tackling it as well. My first step has been to write the macpaint to sun raster converter, due mainly to the fact that it is easier done. By coincidence, as I was reading your message this morning, my MacPaint/Degas Elite to Sun raster was busy doing it's first set of pictures. Having now proved sufficient understanding of both formats, my next task is to convince the Mac that my Sun generated file is a valid MacPaint file. Brute force, I could simply replace the guts of a MacPaint generated file with the Sun file raster data however I will first see if I can't find the info for the more straightforward approach of generating the file directly. If you find the requried info, I would appreciate it if you, or someone else, would forward the appropriate techniques/info . -- "I almost think that in certain cases yes, and in others, no....." George egroeG Reimer remieR
ewright@convex.com (Edward V. Wright) (03/01/91)
In article <1991Feb28.143745.2601@electro.com> george@electro.UUCP (George Reimer) writes: >In article <BARNETT.91Feb27112717@grymoire.crd.ge.com> barnett@crdgw1.ge.com writes: >> .... the program does not retain the right attributes to make >>is usable in a Desktop Puslishing program like MacPaint. >If you find the requried info, I would appreciate it if you, or someone else, would >forward the appropriate techniques/info . Use Resedit to set the file type to MPNT.
wgraff@iiic.ethz.ch (Werner Graff) (03/01/91)
I allready sent a email to answer the question, but it semms to be of general interest so I post it here again: Recently I downloaded a utility from a local PD-Server here at ETH Zurich. It is able to convert sun raster images to MacDraw PICT 1 format (as I read in the documentation). From MacDraw you can easily get it into MacPaint format or whatever you want to with utilities you shurly know best (better than me , I guess). If you give me a hint how I can bring the converter to you, I'm sure it will help you saving time. But I need the HINT ;-) , 'cause I'm a News-reader since only a few weeks and I never postet any binaries. Hope I can help you, Werner (switzerland (sorry for my english))
barnett@grymoire.crd.ge.com (Bruce Barnett) (03/01/91)
In article <1991Feb28.174421.29755@convex.com> ewright@convex.com (Edward V. Wright) writes: > Use Resedit to set the file type to MPNT. It's more difficult than that. The macbinary header doesn't have ANYTHING in it except for a bunch of zeros. No name, no date, to data fork length, nothing. This tends to make Mac programs complain a lot. I grabbed some code for the mcvert.c program and I am getting closer. The name, date, application and creator now have a value. I need to determine what other bits must be there, and also need to calculate the proper length of the data fork. I also believe I need to set the Bundle bit. I may stop my coding because someone also told me about a Mac program on Sumex called gif-convertor that can convert from Sun rasterimage into MacPaint. I tried it, and it can convert Gif images to MacPaint or PICT files. It doesn't seem to handle Sun rasterimage files directly. Have to convert them into PBM format, and then into GIF. I will have to see how hard it is to get the pbmtomacp program to generate the proper header. -- Bruce G. Barnett barnett@crd.ge.com uunet!crdgw1!barnett