-
I'm trying to resize an image, but I forget to initialize Magick.NET, it still works. using var image = new MagickImage(@"G:\SNAG-0111.jpg");
image.Quality = 90;
image.Resize(1000, default(int));
await image.WriteAsync(@"G:\SNAG-0111-1000w.jpg"); I'd like to know when should I run |
Beta Was this translation helpful? Give feedback.
Answered by
dlemstra
Mar 3, 2024
Replies: 1 comment 3 replies
-
You don't need to run |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
doggy8088
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
You don't need to run
MagickNET.Initialize();
but you can. You should do this if you have your own custom configuration. And when you do this should be before you execute any code the creates aMagickImage
orMagickImageCollection
. This should be done as early as possible.