home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / system / 11466 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.9 KB  |  42 lines

  1. Newsgroups: comp.sys.mac.system
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!hpscdc!scd.hp.com!hplextra!cello!sears
  3. From: sears@cello.hpl.hp.com (Bart Sears)
  4. Subject: Re: JPG to GIF or PICT converter
  5. Message-ID: <1992Sep1.002826.21365@cello.hpl.hp.com>
  6. Date: Tue, 1 Sep 1992 00:28:26 GMT
  7. References: <1992Aug28.000024.25625@cello.hpl.hp.com> <1992Aug31.152918.25507@bnr.ca> <1992Aug31.180444.27577@bnr.ca>
  8. Organization: Hewlett-Packard Laboratories
  9. Lines: 31
  10.  
  11.  
  12. If you are interested in JPEG to GIF converters (or viewing JPEG
  13. files) on the mac, you should check out the thread titled:
  14. "JPEG decompressor? (Summary)" in comp.sys.mac.apps.
  15.  
  16. In response to your suggestion to use ppmquant for your color
  17. quantization, at the prompting of the Independent JPEG Group, I did
  18. some fairly detailed comparisons of ppmquant vs. the built in color
  19. quantization code in djpeg (JPEG Group release 3).  I came to the
  20. conclusion that the color quantization code in djpeg does a better job
  21. than ppmquant and does it substantially faster.  Try using both and
  22. see what you think.  Be careful that dithering is not confusing the
  23. matter (ie make sure you compare the four cases, ppmquant vs. djpeg
  24. both with and without dithering for both).
  25.  
  26. To give you an idea of the time differences, I did some comparisons
  27. between djpeg and ppmquant.  To decompress a jpeg file (to ppm format)
  28. djpeg took 3.1 seconds.  Decompression and quantization to 256 colors
  29. took 3.4 seconds (extra 0.3 seconds) and decompression, quantization,
  30. and dither took 4.7 seconds (extra 1.6 seconds).
  31.  
  32. Running ppmquant to 256 colors on the decompressed ppm file from above
  33. took 15.6 seconds.  Adding dithering took 22.3 seconds.  Given that
  34. ppm files take very little effort to read/write (no compression), the
  35. 0.3 seconds for djpeg is roughly comparable with 15.6 seconds for
  36. ppmquant and 1.6 seconds is roughly comparable with 22.3 seconds.
  37. ppmquant would need to be _much_ faster before it would approach the
  38. speed of djpeg.
  39.  
  40.                             Bart
  41.  
  42.