Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return raw image bytes for non-windows platforms in the ImageHandler #40

Open
wants to merge 1 commit into
base: vNext
Choose a base branch
from

Conversation

kostya9
Copy link

@kostya9 kostya9 commented Dec 15, 2022

Unfortunately, in the latest versions of .NET, the System.Drawing namespace (therefore, Bitmap class) has become non-usable on linux.

In this MR, I add raw image bytes to the ImageInfo class that is provided as an argument to ImageHandler. For those needing Bitmap and for backwards compatibility, I left the previous behavior that exposed Bitmap object, but it is evaluated lazily on demand

@axeh
Copy link

axeh commented Jan 31, 2023

@EricWhiteDev are you considering merging this?

@elgransan
Copy link

Now I can use it on Blazor Webassembly thanks to your code, in this way:
image

@ITaluone
Copy link

Thank you for the code :)

Helps ma also with a net6+ app :)

@ozanneconsulting
Copy link

@EricWhiteDev This would be a major improvement, these tools are SO close to being cross-platform. Any chance of a merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants