Use &colors=256
, &colors=128
, etc to adjust the bit depth. You can also preserve the existing color palette with preservePalette=true
.
Note that advanced PNG compression optimizations (such as offered by smush.it, tinypng, etc) require an additional 150-400MB of RAM and take 10-20 seconds to perform - for obvious reasons you wouldn't want that to happen during a dynamic request. ImageResizer tries to finish each request under 250ms.
Hand-optimizing PNG/GIF CSS sprites and site-wide icons is usually going to give you a smaller file size that ImageResizer can, although it's nearly impossible to beat for photographic data.
Of course, with the WebP plugin installed, ImageResizer will wipe the floor with the competition.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…