Re: MNG decoder performance very bad
Glenn Randers-Pehrson <[email protected]> Thu, 14 Aug 2003 22:46:51 -0400
| Newsgroups | gmane.comp.graphics.mng.general |
|---|---|
| Message-ID | <[email protected]> |
At 04:21 AM 8/15/03 +0200, Markus Meyer wrote: >Glenn, > >Am Fre, 2003-08-15 um 03.48 schrieb Glenn Randers-Pehrson: >> At 07:48 PM 8/14/03 +0200, you wrote: >> > >> >Time (ms) Function >> >---------------------------------------------- >> >1401,371 _filter_paeth (libmng_filter.obj) >> >> Try using the sub filter or "none" filter when compressing your images. >> The Paeth filter is the slowest PNG filter to decompress. > >Thanks for the quick answer! Maybe you can recommend a program which is >able to write such images? maybe ImageMagick (depends on what MNG features are present in your files) convert in.mng -quality 90 none.mng or convert in.mng -quality 91 sub.mng The 10's digit of the quality parameter is the zlib compression level (1-9) and the ones digit is the PNG filter type (0: none, 1: sub, 2: up, 3: average, 4: Paeth, or 5: adaptive). "convert" does require a lot of memory because it reads all images into memory before writing anything. Glenn -- Send the message body "help" to [email protected]