System.drawing namespace is not available in the coreCLR . I want to resize the image in the server and return store it.
To give more context my application uses markdown for content edition . once the image is uploaded I want to resize and apply it in HTML . I am making an assembly to work with coreclr not on the desktop .
The short answer (and only answer, for now) is yes, you're totally correct. System.Drawing isn't and will never be a good option for Core, especially since it's cross platform. We are looking at other solutions like a managed libgd wrapper as discussed here https://github.com/imazen/Graphics-vNext
Alexander Köplinger started porting Mono's implementation of System.Drawing (and WinForms) to .NET Core. You can find his code at github.com/akoeplinger/mono-winforms-netcore.
As fair warning though, he did say this about it:
Mono's WinForms implementation didn't get much love in the recent years, so not sure if it has much use outside of experimental/hobby-stuff apps.
If you are on windows you could try Magick.Net (which wraps ImageMagick) https://magick.codeplex.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With