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

Enhance Resizetizer to Automatically Adjust Splash Screen Images to Square for Android #27205

Open
LITTOMA opened this issue Jan 17, 2025 · 0 comments

Comments

@LITTOMA
Copy link

LITTOMA commented Jan 17, 2025

Description

The Resizetizer in .NET MAUI currently does not automatically adjust splash screen images to a square aspect ratio when generating resources for Android. As of Android 12+, splash screen images must be square to render correctly. Non-square images result in distortion or errors during the splash screen display.

This proposal is to enhance the Resizetizer to automatically adjust the provided splash screen images to a square aspect ratio when generating resources for Android, ensuring compliance with Android 12+ requirements. This adjustment would streamline development by removing the need for manual preprocessing of images by developers.

Public API Changes

This change does not involve any new APIs or modifications to existing APIs. The adjustment to square images for Android splash screens would happen automatically within the Resizetizer's internal processing logic.

Intended Use-Case

When building a .NET MAUI app targeting Android 12 or newer, developers often need to manually ensure splash screen images are square. This enhancement would automate the process, saving time and reducing errors.

For example:

  • Developers can provide any image for the splash screen, and the Resizetizer ensures it meets Android's requirements.
  • This prevents distorted splash screens and ensures a consistent appearance across devices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant