maui
maui copied to clipboard
.NET MAUI SplashScreen PNG Resizing Incorrectly to Circular Shape
Description
<MauiSplashScreen Include="Resources\splashlogo.png" Resize="True" BaseSize="210,260" Color="#FFFFFF"/>
I'm encountering an issue with the splash screen in a .NET MAUI application. When I provide a PNG file for the splash screen, it gets resized automatically into a circular shape, which is not the intended behavior. I want the splash screen to maintain the original aspect ratio and only increase height and width , but .NET MAUI seems to be enforcing a circular crop or resize.
Steps to Reproduce
<MauiSplashScreen Include="Resources\splashlogo.png" Resize="True" BaseSize="210,260" Color="#FFFFFF"/>
Link to public reproduction project repository
No response
Version with bug
8.0.82 SR8.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 13
Did you find any workaround?
Not yet
Relevant log output
No response
We've found some similar issues:
- #15782 , similarity score: 83%
- #11160 , similarity score: 83%
- #20605 , similarity score: 82%
- #10275 , similarity score: 82%
- #17850 , similarity score: 82%
- #4341 , similarity score: 82%
- #7304 , similarity score: 81%
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
Note: You can give me feedback by 👍 or 👎 this comment.
I am also seeing this, when using .svgs
This is the expected behavior. A splash screen is composed of a circular image and a background. Please read the documentation for more details.
Duplicate of #20605