Skip to content

svenrog/ImageResizer.Plugins.PngOptimizer

Repository files navigation

ImageResizer.Plugins.PngOptimizer

PNG Optimizer for ImageResizer.NET

bike example

nQuant based optimizer for reducing png file sizes by palette quantization. Uses a Bayer matrix ordered dithering on alpha channel for smoother shadows.

Error diffusion dithering can sometimes give better results, but give noisy results during animation.

Parameters

  • optimizePng - values '1' or 'true', specifies if plugin should be used.
  • dither - numeric value '0' to '24' (default 6), how much dithering to apply when reducing colors.