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