home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sources / wanted / 5132 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.8 KB  |  47 lines

  1. Xref: sparky comp.sources.wanted:5132 comp.graphics:12240
  2. Newsgroups: comp.sources.wanted,comp.graphics
  3. Path: sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
  4. From: etxmesa@eos.ericsson.se (Michael Salmon)
  5. Subject: Re: Postscript optimization
  6. Message-ID: <1992Nov23.111926.3473@ericsson.se>
  7. Keywords: postscript,bitmap,compression
  8. Sender: news@ericsson.se
  9. Nntp-Posting-Host: eos6c02.ericsson.se
  10. Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
  11. Organization: Ericsson Telecom AB
  12. References:  <166@denali.UUCP>
  13. Date: Mon, 23 Nov 1992 11:19:26 GMT
  14. Lines: 31
  15.  
  16. In article <166@denali.UUCP>, steve@denali (steve) writes:
  17. |> Does anyone know a way to reduce the size of huge postscript image
  18. |> files?  Our application produces only bitmaps for shaded output which
  19. |> can be several megabytes in size.  Print time can be hours, with the
  20. |> biggest delay being time to send through the parallel port.
  21. |> 
  22. |> I'd like to optimize the file, perhaps by finding areas of nearly the
  23. |> same color or intensity and polygonalizing them.
  24.  
  25. I've been thinking of something similar, the idea is quite old but to
  26. my knowledge it hasn't been used for PostScript. We increase the number
  27. of pixels to a power of 2 and equal in each direction i.e. 1152x900
  28. becomes 2048x2048, unused pixels are defined as white. For each group
  29. of 4 pixels we create a higher order pixel that has the most common
  30. colour or white if there is no common colour. We repeat this process
  31. until we have a single super pixel. The page can then be drawn using a
  32. series of rectangles that are filled, I think that white can be ignored
  33. at all but the lowest level. By defining a prodecure to do the work it
  34. should be quite easy to encode each rectangle with just a few
  35. characters.
  36.  
  37. -- 
  38.  
  39. Michael Salmon
  40.  
  41. #include    <standard.disclaimer>
  42. #include    <witty.saying>
  43. #include    <fancy.pseudo.graphics>
  44.  
  45. Ericsson Telecom AB
  46. Stockholm
  47.