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.
Platforms affected
Android
Motivation and Context
Fixes #711
Description
When a .heic image is selected from a gallery it is converted to a .jpeg or .png image.
A .heic image is a format supported by Samsung phone's to take quality pictures.
But the .heic format cannot be handled by the webview part. (F.e. an image tag does not support it).
So the .heic image is converted by the Android build in HeicConverter.
In the webview part the returned image can be shown in an image tag or it can be send to the server.
Some extra code cleanup is done too.
Testing
Testing in the emulator with next repo: https://github.com/PieterVanPoyer/cordova-camera-plugin-testing-app/tree/features/issue-711-heif-format
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)