5r1m opened a new issue #769: URL: https://github.com/apache/cordova-plugin-camera/issues/769
As per documentation: https://cordova.apache.org/docs/en/10.x/reference/cordova-plugin-camera/#cameraoptions-errata "encodingType" should be ignored when source type is PHOTOLIBRARY or SAVEDPHOTOALBUM. How ever when "encodingType" is set with "Camera.EncodingType.JPEG" and selecting a png picture from album results in unecessary transformation and is not as per the documentation <img width="850" alt="Screenshot 2021-10-12 at 1 04 47 PM" src="https://user-images.githubusercontent.com/47805716/136914209-4d4e055d-af23-4c05-b0a9-22eee9129353.png"> The reason seems to be unnecessary check for mime type of the choosen file to match the encodingType in options and when not matched it does the transformation: https://github.com/apache/cordova-plugin-camera/blob/ed216ce7148b97ad23316f0530cd9abc2d8d6562/src/android/CameraLauncher.java#L729 Is this a bug or a known behavior? Atleast there is difference in documentation and implementation and there is no option to avoid transformation with out providing the same encoding type which is not possible to provide before hand -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
