Fixed transparency problems on Android. Working also with remote URIs.#15
Open
carlosmellado wants to merge 1 commit intoatlj:mainfrom
Open
Fixed transparency problems on Android. Working also with remote URIs.#15carlosmellado wants to merge 1 commit intoatlj:mainfrom
carlosmellado wants to merge 1 commit intoatlj:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 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.