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

Incorrect Size for ToWriteableBitmap Magick.NET.AvaloniaMediaImaging when DPI is not 96 #1780

Open
Ruben2776 opened this issue Jan 8, 2025 · 0 comments · May be fixed by #1781
Open

Incorrect Size for ToWriteableBitmap Magick.NET.AvaloniaMediaImaging when DPI is not 96 #1780

Ruben2776 opened this issue Jan 8, 2025 · 0 comments · May be fixed by #1781

Comments

@Ruben2776
Copy link

Magick.NET version

Magick.NET.AvaloniaMediaImaging 1.0.1

Environment (Operating system, version and so on)

Windows

Description

When using the extension ToWriteableBitmap(), on an image, that has a DPI that is E.g. 300, the WriteableBitmap image is not rendered correctly. And it will often crash the application with exception message Invalid size returned for Measure.

Steps to Reproduce

Call ToWriteableBitmap() on for example a raw camera photo like an .CR3 file.

@Ruben2776 Ruben2776 linked a pull request Jan 8, 2025 that will close this issue
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 a pull request may close this issue.

1 participant