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

Tile "Bitmap.toImageResource()" enforce RGB_565 without possibility to change and keep alpha. #2253

Closed
Tolriq opened this issue Jun 5, 2024 · 2 comments

Comments

@Tolriq
Copy link
Contributor

Tolriq commented Jun 5, 2024

In accompanist Tile Bitmap.toImageResource() enforce RGB_565, took me quite some time to find that one, this force a black background on the image that are round cropped (.transformations(CircleCropTransformation()) ) and of course as I did test with very dark images, I did not see the crop working and black background and searched around the source image.

image

The configuration should probably be a parameter as the doc is easy to miss and not very clear about why it's enforced.

@yschimke
Copy link
Collaborator

yschimke commented Jun 5, 2024

I think dupe of #251

Valid request. Care to submit a PR, or otherwise review and test for me if not?

@yschimke
Copy link
Collaborator

yschimke commented Jun 5, 2024

Let's continue on that other PR.

@yschimke yschimke closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants