home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / vmsnet / sources / d / 687 < prev    next >
Encoding:
Text File  |  1992-11-18  |  2.0 KB  |  49 lines

  1. Newsgroups: vmsnet.sources.d
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!dsfys1.fi.uib.no!iversen
  3. From: iversen@dsfys1.fi.uib.no (Per Steinar Iversen)
  4. Subject: Bug in PBMPLUS for VMS?
  5. Message-ID: <1992Nov19.144430.19234@alf.uib.no>
  6. Lines: 36
  7. Sender: iversen@vsfys1.fi.uib.no (Per Steinar Iversen)
  8. Reply-To: iversen@vsfys1.fi.uib.no
  9. Organization: Department of Physics, University of Bergen, Norway
  10. Date: Thu, 19 Nov 92 14:44:30 GMT
  11. Lines: 36
  12.  
  13.  
  14.  
  15. Is there a bug in PBMPLUS for VMS, as found on the VMSNET.SOURCES archives?
  16. After copying the saveset, unpacking the files and doing @SETUP I want to
  17. convert color PCX files to readable PBM files (I know that the color information
  18. is lost, that is actually useful in this application). On a Unix machines I 
  19. can use something like
  20. "pcxtoppm file.pcx | ppmtopgm | pgmtopbm -threshold | pnmnoraw > file.pbm"
  21. The corresponding sequence under VMS should be "@p2b file", where p2b.com is: 
  22.  
  23. $! pcx -> ppm
  24. $ define/user sys$output 'p1'.ppm
  25. $ pcxtoppm 'p1'.pcx
  26. $! ppm -> pgm
  27. $ define/user sys$output 'p1'.pgm
  28. $ ppmtopgm 'p1'.ppm
  29. $! pgm -> pbm
  30. $ define/user sys$output 'p1'.pbm_raw
  31. $ pgmtopbm -threshold 'p1'.pgm
  32. $! pbm -> pbm (ASCII)
  33. $ define/user sys$output 'p1'.pbm
  34. $ pnmnoraw 'p1'.pbm_raw
  35.  
  36. The first step works fine, but then the ppmtopgm step breaks down and I get
  37. a file with 3 lines of header and no data... What am I doing wrong?
  38.  
  39. -psi
  40.  
  41. +------------------------------------------------------------------------------+
  42. ! Per Steinar Iversen    ! Internet:     iversen@vsfys1.fi.uib.no              !
  43. ! Fysisk Institutt       ! BITnet:       iversen@cernvm.bitnet                 !
  44. ! Universitetet i Bergen ! HEPnet:       VSFYS::IVERSEN (VSFYS=21.341=21845)   !
  45. ! Allegaten 55           ! Phone:       +47 5212770                            !
  46. ! N-5007 Bergen          ! Fax:         +47 5318334                            !
  47. ! NORWAY                 !                                                     !
  48. +------------------------------------------------------------------------------+
  49.