-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add option to Image class to ignore embedded DPI resolution when rendering #5362
Comments
How about make it as the attache property? |
What I really would like is to not have to even consider it. Here's an image rendered in WPF (Stretch=Uniform, StretchDireciton=downonly) And here's a same thing using AvaloniaUI with same stretch properties. Avalonia's behavior is the one I want. Image link: https://pbs.twimg.com/media/E_HukwdXoAQJACf.jpg |
I would say images with embedded DPI information render as they instruct to do so (and file a bug on AvaloniaUI for ignoring it). If you want special treatment like ignoring DPI, color profile or orientation, you should do the extra work. |
@miloush I would say otherwise. The aspect ratio of the image is wrong and the image looks terrible. And for the record, I did do the extra work and still ran into to issues which is what prompted this bug report. Finally, I would like to thank you for your supportive and encouraging comments. It's kind and thoughtful comments like yours that keep the community open and welcoming. |
Images with embedded DPI resolution (DPIx, DPIy) render smaller/larger than desired when the image control container is unbounded. A property to control this behavior would be much appreciated.
Example:
The text was updated successfully, but these errors were encountered: