home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / ghostscr / bug / 1332 < prev    next >
Encoding:
Text File  |  1993-01-02  |  1.7 KB  |  44 lines

  1. Newsgroups: gnu.ghostscript.bug
  2. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!aladdin.COM!ghost
  3. From: ghost@aladdin.COM (L. Peter Deutsch)
  4. Subject: Re: Bug with Colors?
  5. Message-ID: <9301021456.1.UUL1.3#5127@aladdin.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. References: ghost@aladdin.COM (L. Peter Deutsch)
  9. Distribution: gnu
  10. Date: Sat, 2 Jan 1993 21:56:06 GMT
  11. Approved: bug-ghostscript@prep.ai.mit.edu
  12. Lines: 30
  13.  
  14. Re <9301010700.AA07909@raisin-nut>
  15. <ROSE.92Dec31104330@t524i2.telematik.informatik.uni-karlsruhe.de>:
  16.  
  17. > I have a problem when displaying colored PostScript pictures
  18. > created with Mathematica. Within these files, lots of different
  19. > colors are declared using the "setrgbcolor" operator. However,
  20. > when viewing the file using Ghostscript rel. 2.5.2, I only see a 
  21. > very limited amount (e.g. 8-30 colors; these are the results
  22. > when converting the file to ppm or gif and viewing it using "xv"). 
  23.  
  24. How are you converting it to PPM?  If you use the pstoppm utility,
  25. the color choices are governed by a predefined palette of 256 colors
  26. in pstoppm.ps.  Colors other than those in the palette are
  27. approximated with halftones of the 8 primary colors.
  28.  
  29. Conversion to GIF uses a different fixed 256-element palette based on
  30. 3 bits of R, 3 bits of G, and 2 bits of B.
  31.  
  32. If you really want 24-bit color output, simply specify PPM output on
  33. the command line, e.g.,
  34.     gs -sDEVICE=ppm -sOutputFile=something.ppm something.ps
  35. (You will have to recompile Ghostscript to add this driver to it.)
  36.  
  37. L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
  38. ghost@aladdin.com, ...decwrl!aladdin!ghost ; voice 415-322-0103 ; fax 322-1734
  39.         "Implementation is the sincerest form of flattery."
  40.  
  41.  
  42.  
  43.  
  44.