home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / src / xpm / converters / ppm.README next >
Text File  |  2000-07-29  |  2KB  |  70 lines

  1. PPM Stuff 
  2. Convert portable pixmap to X11 Pixmap format (version 3) and vice versa
  3. -----------------------------------------------------------------------
  4.  
  5. The program ppmtoxpm is a modified version of one sent out by Mark Snitily
  6. (mark@zok.uucp) and upgraded to XPM version 2 by Paul Breslaw
  7. (paul@mecazh.uu.ch).
  8.  
  9. It converts Jeff Poskanzer's (jef@well.sf.ca.us) portable pixmap format
  10. (PBMPlus) into the new X11 pixmap format: XPM version 3 distributed by Arnaud
  11. Le Hors (lehors@mirsa.inria.fr).
  12.  
  13. It is built using the PBMPlus libraries in the same way as any of the
  14. ppm utilities in the PBMPlus package.
  15.  
  16. Paul Breslaw - Thu Nov 22 09:55:31 MET 1990
  17. --
  18. Paul Breslaw, Mecasoft SA,          |  telephone :  41 1 362 2040
  19. Guggachstrasse 10, CH-8057 Zurich,  |  e-mail    :  paul@mecazh.uu.ch
  20. Switzerland.                        |               mcsun!chx400!mecazh!paul
  21. --
  22.  
  23. The program xpmtoppm is a modified version of the one distributed in the
  24. PBMPlus package by Jeff Poskanzer's which converts XPM version 1 or 3 files
  25. into a portable pixmap format.
  26.  
  27. Upgraded to XPM version 3 by
  28.   Arnaud LE HORS     BULL Research France -- Koala Project
  29.   lehors@sa.inria.fr  Phone:(33) 93 65 77 71  Fax:(33) 93 65 77 66
  30.   Inria Sophia Antipolis B.P.109 06561 Valbonne Cedex France
  31.  
  32.  
  33. Installation
  34. -----------
  35. You should copy The ppmtoxpm.c, ppmtoxpm.1 and xpmtoppm.c, xpmtoppm.1 into
  36. your .../pbmplus/ppm directory.
  37.  
  38.  
  39. Patches
  40. -------
  41. * Rainer Sinkwitz sinkwitz@ifi.unizh.ch - 21 Nov 91:
  42.  
  43. xpmtoppm.c:
  44.   - Bug fix, no advance of read ptr, would not read 
  45.     colors like "ac c black" because it would find 
  46.     the "c" of "ac" and then had problems with "c"
  47.     as color.
  48.     
  49.   - Now understands multword X11 color names
  50.   
  51.   - Now reads multiple color keys. Takes the color
  52.     of the hightest available key. Lines no longer need
  53.     to begin with key 'c'.
  54.     
  55.   - expanded line buffer to from 500 to 2048 for bigger files
  56.     
  57. ppmtoxpm.c:
  58.   - Bug fix, should should malloc space for rgbn[j].name+1 in line 441
  59.     caused segmentation faults
  60.     
  61.   - lowercase conversion of RGB names def'ed out,
  62.     considered harmful.
  63.     
  64. Suggestions:
  65.   ppmtoxpm should read /usr/lib/X11/rgb.txt by default.
  66.   With the Imakefiles of pbmplus it even gets compiled 
  67.   with -DRGB_DB=\"/usr/lib/X11/rgb.txt\"
  68.  
  69.  
  70.