Sainath
Sainath

Reputation: 55

Which function should i use to convert an image to grayscale using GOIMAGICK in GO

I want to convert an image to grayscale using magickwand in GOIMAGICK, but which one should I use: BlurImage(radius, sigma float64) error or BrightnessContrastImage(brightness, contrast float64) error?

Upvotes: 0

Views: 220

Answers (1)

Gerard H. Pille
Gerard H. Pille

Reputation: 2578

With ImageMagick MagickWand it goes like this:

  MagickQuantizeImage(image_wand,256,GRAYColorspace,0,MagickFalse,MagickFalse);

So, why not go for QuantizeImage?

Upvotes: 1

Related Questions