Skip to content

Comments

Fixed transparency problems on Android. Working also with remote URIs.#15

Open
carlosmellado wants to merge 1 commit intoatlj:mainfrom
carlosmellado:android-patch
Open

Fixed transparency problems on Android. Working also with remote URIs.#15
carlosmellado wants to merge 1 commit intoatlj:mainfrom
carlosmellado:android-patch

Conversation

@carlosmellado
Copy link

📌 Changes Made:
✅ Fixed Transparency Issues: Improved mask handling to ensure processed images retain transparency instead of turning black backgrounds.
✅ Support for Remote Images: Now, images can be downloaded from URLs before processing.
✅ Saved as PNG Instead of JPG: Switched image compression to PNG to preserve transparency.
✅ Optimized Bitmap Management: Added enhancements to prevent issues with images missing an alpha channel.
✅ Improved Error Handling: Added validations and better exception handling for image downloading and decoding.

🚀 Benefits:
Prevents black backgrounds on transparent images.
Enables processing of images directly from the internet too.

📂 Local tests:
✅ Tested with both local and remote images on a device.
✅ Verified transparency in the final output.

@carlosmellado carlosmellado changed the title Fixed transparency problems. Working also with remote URIs. Fixed transparency problems on Android. Working also with remote URIs. Apr 2, 2025
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

Successfully merging this pull request may close these issues.

1 participant