Skip to content

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

@Ruben2776

Description

@Ruben2776

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions