Where do I set Quantize settings/info/int colors?

Jul 13, 2014 at 9:33 AM
Hello!

I´m using ImageMagickNet as a plugin for Unity3D.

So far I´ve managed to get it to work reasonably well:
using ImageMagickNET;
...
ImageMagickNET.Image myImage = new ImageMagickNET.Image(texture.EncodeToPNG());

And then I can do myImage.Quantize (bool);

But I can´t find any autocomplete that directs me to the quantize settings such as number of colors, any idea how I´m supposed to set these?

Thanks a bunch in advance,
all the best,
Jul 15, 2014 at 10:49 AM
You cannot set the Quantize options with ImageMagickNET. This is supported in a new wrapper that I have created: Magick.NET
Jul 15, 2014 at 1:42 PM
Edited Jul 15, 2014 at 1:43 PM
That is what I'm using, dlemstra.

When I import it as a Plugin the only namespace available is ImageMagickNet


Or did you make a new wrapper just now? :D
Jul 15, 2014 at 2:24 PM
There is a difference between ImageMagick.NET (https://imagemagick.codeplex.com/) and Magick.NET (https://magick.codeplex.com/). The namespace of the Magick.NET library is ImageMagick. The namespace ImageMagickNet does not exists in Magick.NET.
Jul 15, 2014 at 3:47 PM
Oh wow you're right! :D

Such similar, much mistake.

Thank you!
Jul 15, 2014 at 3:51 PM
Do you have any quantization features such as forced colors or a choice in color bias (like photoshops "Perceptual", "Selective", "Adaptive", "Web" when you change Image mode from RGB to Indexed Colors) ?
Jul 16, 2014 at 6:14 AM
You can find more information on how Quantize works in ImageMagick here: http://www.imagemagick.org/Usage/quantize/. Feel free to start a new discussion here: https://magick.codeplex.com/discussions if you need more help.
Aug 18, 2014 at 6:13 PM
I want the same thing, and I can't figure out how to do it. wisearn, did you figure out how to force quantize to work like Photoshop? I need Selective as well...