maui icon indicating copy to clipboard operation
maui copied to clipboard

Image is not rendering correctly with `Aspect` property other than `Center`

Open valimaties opened this issue 3 years ago • 3 comments

Description

Image control is not rendering correctly when the Aspect property is set to fit in the WidthRequest and HeighRequest. This is the image on how it must be rendered: HowItMust and it is displayed like this: HowItIs

Any option I choose, other than Center will pixelate the image, is not so clearly. More than that, if you change the Aspect property while app is running to Center and back to your old value (AspectFill, AspectFit or Fill) the image will look different than its initial displaying.

Steps to Reproduce

  1. Create a MAUI project.
  2. Create a custom ContentView and add an Image to the control.
  3. Set the image to some WidthRequest and HeighRequest smaller than original image file dimensions.
  4. Add the custom control to a page and run the app.
  5. Look at image on how it is displayed (rendered) and change the Aspect property of Image to Center and then to other value. It will look different than initial display when app starts.

ImageRenderIssue

Link to public reproduction project repository

https://github.com/valimaties/TestMAUI

Version with bug

7.0 Release Candidate 2

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.19041.0

Did you find any workaround?

No response

Relevant log output

No response

valimaties avatar Oct 26 '22 07:10 valimaties

Similar or duplicate from https://github.com/dotnet/maui/issues/9971

jsuarezruiz avatar Oct 26 '22 18:10 jsuarezruiz

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Oct 26 '22 18:10 ghost

Similar or duplicate from #9971

No way to be marked as duplicate! This issue is about rendering image, not how it is positioning on the "container". This issue is about the clarity of image when the image is not as the same size as the container size, which will make the image to look pixelate, non-clear! So, clearly, not a duplicate 😊

valimaties avatar Oct 26 '22 20:10 valimaties

Verified this issue with Visual Studio 17.7.0 Preview 1.0. Can repro on Windows platform with sample project. TestMAUI.

jinxinjuan avatar May 30 '23 08:05 jinxinjuan