-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Bryan Tong Minh wrote:
It got me annoyed as well. So I finally got around writing a png resizer that does not need to load the entire file into memory: http://svn.wikimedia.org/viewvc/mediawiki/trunk/pngds/. I took a 6000x4000 PNG from that category and recompressed it to a 640px image in only 4 seconds, while taking only a few 100KB of memory.
Sweeet! How does that compare to ImageMagick's speed on the same image?
Couple of downsides:
- It does currently not do any adaptive filtering on compression,
which may lead to somewhat larger file sizes than necessary
- Compression level is hardcoded
- Only RGB, RGBA, Grayscale and Grayscale-Alpha images are supported.
Palette images are unsupported.
- Single color transparency is discarded.
There should probably a MediaWiki mediahandler be written for this as well.
That'd be super-cool...
- -- brion