You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running on Linux the Scale method throw: "Image resizing exception: System.PlatformNotSupportedException: System.Drawing.Common is not supported on this platform." exception.
As in docs explained I have installed libc6-dev and libgdiplus libraries.
There is also another issue if path is contains backslash like this:
Path.Combine(webRootPath, @"images\artist");
it will throw directory not found exception on Linux, as a workaround I have changed the backslash to forward slash it worked.
To Reproduce
Steps to reproduce the behavior:
Run the application on Linux
Scale an image while uploading
If not debugging or on server you can see the errors in logs.
Expected behavior
***** Image resizing exception: System.PlatformNotSupportedException: System.Drawing.Common is not supported on this platform.
at System.Drawing.Image.FromStream(Stream stream)
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Not sure if this will work; create a class library project targeting lower .net framework and install ImageResize nuget. Then add a reference to your project!?
Describe the bug
When running on Linux the Scale method throw: "Image resizing exception: System.PlatformNotSupportedException: System.Drawing.Common is not supported on this platform." exception.
As in docs explained I have installed libc6-dev and libgdiplus libraries.
There is also another issue if path is contains backslash like this:
Path.Combine(webRootPath, @"images\artist");
it will throw directory not found exception on Linux, as a workaround I have changed the backslash to forward slash it worked.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
***** Image resizing exception: System.PlatformNotSupportedException: System.Drawing.Common is not supported on this platform.
at System.Drawing.Image.FromStream(Stream stream)
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Example code block looks like this:
The text was updated successfully, but these errors were encountered: