You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/03/14 23:45:38 UTC

[GitHub] infil00p closed pull request #221: android fix: image from gallery not compressing when destinationType ���

infil00p closed pull request #221: android fix: image from gallery not compressing when destinationType …
URL: https://github.com/apache/cordova-plugin-camera/pull/221
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java
index 9db9911c..1cf98385 100644
--- a/src/android/CameraLauncher.java
+++ b/src/android/CameraLauncher.java
@@ -663,7 +663,7 @@ private void processResultFromGallery(int destType, Intent intent) {
             // This is a special case to just return the path as no scaling,
             // rotating, nor compressing needs to be done
             if (this.targetHeight == -1 && this.targetWidth == -1 &&
-                    (destType == FILE_URI || destType == NATIVE_URI) && !this.correctOrientation) {
+                    (destType == FILE_URI || destType == NATIVE_URI) && !this.correctOrientation  && this.mQuality == 100) {
                 this.callbackContext.success(uri.toString());
             } else {
                 String uriString = uri.toString();


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org