Page 1 of 1

Different conversion result for .Net and node.js library

Posted: 2019-04-02T03:00:07-07:00
by esafonchik
Hi!

I'm trying to reproduce node.js conversion through .Net library, but the result is very different.

original js code - s.flatten().filter('Box').define('filter:blur=0').resize(imageSize, imageSize)

c# code -

Code: Select all

using (IMagickImage image = images.Flatten())
                {

                    image.FilterType = FilterType.Box;

                    image.Blur(0);

                    image.Resize(size, size);
}
I d'not know how to make the results identical. Can somebody help me?

Thanks!

Re: Different conversion result for .Net and node.js library

Posted: 2019-04-02T05:47:24-07:00
by snibgo
Your js code has a define 'filter:blur=0' with the effect of sharpening at the resize. See http://www.imagemagick.org/script/comma ... php#filter


Your c# code doesn't do this. Instead, it performs a blur.

Re: Different conversion result for .Net and node.js library

Posted: 2019-04-02T22:21:56-07:00
by dlemstra
You will need to do image.SetArtifact("filter:blur", "0") instead of image.Blur(0);