[6507] in s-news-athena
PICT format graphics
daemon@ATHENA.MIT.EDU (Matthew Eagle)
Fri Feb 24 09:13:12 1995
Date: Fri, 24 Feb 1995 13:30:01 GMT
From: matthew@statsci.co.uk (Matthew Eagle)
Reply-To: matthew@statsci.co.uk
To: s-news@utstat.toronto.edu
Here is a summary of responses to my query
> matthew@statsci.co.uk (Matthew Eagle) asks:
>
> Does anybody have any experience or solutions for converting S-PLUS
> (specfically S-PLUS for WINDOWS) graphics into PICT format (a MAC format)
> for use in MAC software such as Claris Works or MacDrawPro?
One suggestion not included in the summary below is that Claris Works and
MacDrawPro should be able to read encapsulated postscript (eps) files
directly. I believe the main problem here will be lack of PostScript
previewing since S-PLUS does not support EPSI (EPS Interchange Format).
EPS files created by S-PLUS do not include a preview image, so when you
import the graphic into a WYSIWYG software you will only see blank space
where the graphic is included.
*******************************************************************
Netpbm is a collection of translation utilities which has XXXtopict and
picttoXXX and should be available for any platform. I don't remember where I
found them but they are available on the Net.
--
Clint Bowman INTERNET: clint@ecy.wa.gov
Air Quality Modeler INTERNET: clint@math.utah.edu
Department of Ecology VOICE: (360) 407-6815
PO Box 47600 FAX: (360) 407-6802
Olympia, WA 98504-7600
******************************************************************
I have done the following
create a graphic on a Sun running X windows
use xwd, followed by xwdtopnm, then ppmtopict to convert from X window
format to PICT. Now ftp the output to a Macintosh and use ResEdit to change
the file type to PICT ready for your favorite Mac graphics program.
Could be streamlined into a shell script. Needs lots of temporary file space
for the intermediate files, unless you pipe them together when lots of
memory helps.
Hope this helps,
Colin
--------------------
Colin Farrow
Department of Geology, \ E-mail: colin@geology.glasgow.ac.uk
University of Glasgow,
Glasgow, G12 8QQ. Scotland \ Tel: +44 (0)41 339 8855 x5466
\ Fax: +44 (0)41 330 4817
`````````````````````````````````````````````````````````````````````````
*************************************************************
The best publicly available program I have used for image format conversion
is ImageMagick, which is available from export.lcs.mit.edu in the contrib
subdirectory. This package can convert to and from a large number of formats
and is very easy to use. It must be compiled on an X11 box, though. But it
can convert eps or ps to and from PICT, among many others.
If you are restricted to a DOS box, try the PBM-Plus tools. There is a version
for DOS and/or Windows that may have what you need (ps to ppm to PICT).
Larry Ammann
Professor of Mathematical Sciences
University of Texas at Dallas
****************************************************************
I can't answer your question specifically, but I have moved rather complex
graphics from SPlus for Windows (Ver 3.2) into PowerPoint for the Mac after it
was passed throught PowerPoint for Windows. Use the win.printer function
setting the output file to a clipboard file in the metafile format.
(Documented on pg 2-13 of the Ver 3.2 Supplement). The only problems that
we've noticed were incompatabilities between the Windows and Mac versions of
PowerPoint.
George Garrity
Merck & Co
Rahway, NJ
***************************************************************
--------------------------------------
Not me, but...
[Information gleaned from software README & make files]
You could use the S-PLUS postscript() function.
You could use ghostscript (a free PostScript interpreter package) to
interpret the PostScript and output one of the pbm formats (pbm,pgm,ppm).
You could then use pbmplus (or netpbm - a newer successor to pbmplus, I
think) to convert the pbm format into PICT.
After that, you might need some tool to get it into a Mac file (I'm not
familiar with Macs, but I've heard about "resource forks" and such - don't
know if that is relevant).
I'm sure there is a Windows version of ghostscript. I'm not sure how up
to date the pbm stuff for Windows is - it's probably OK.
Ghostscript - ftp://ftp.cs.wisc.edu/pub/ghost/
Netpbm - ftp://ftp.x.org/contrib/utilities/
One of these days, I want to sit down & come up with some instructions on
what to grab from where and a little glue to be able to use this stuff
from S-PLUS. All I have to do is find a little free time...:-))
Scott Blachowicz Ph: 206/283-8802x240 StatSci, a div of MathSoft, Inc.
1700 Westlake Ave N #500
scott@statsci.com Seattle, WA USA 98109
Scott.Blachowicz@seaslug.org