Good day,
I've been trying to convert my software from using imagemagick with command lines to magick.net dll.
So far most of them are fine but I do have issue with 2 functions:
Thank you very much.
I've been trying to convert my software from using imagemagick with command lines to magick.net dll.
So far most of them are fine but I do have issue with 2 functions:
-
Resize(int width, int height)
using (MagickImage image = new MagickImage(pathToPhotoInString))
{
image.Resize(2100, 1400);
return image.ToBitmap();
}
This resize method would cause my generated image to be all black when I call bitmap.Save(filePath) method, dimension is correct though.-
Grayscale effect
convert source.jpg -grayscale Rec709Luminance destination.jpg
I've looked into functions provided but I couldn't fine any similar function which I can generate the same effect, could you please guide me on this?Thank you very much.