{"action":"created","issue":{"url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/137","labels_url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/137/comments","events_url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/137/events","html_url":"https://github.com/apache/cordova-plugin-camera/pull/137","id":116442212,"number":137,"title":"CB-5479 android: changed saveToPhotoAlbum to save uncompressed images","user":{"login":"riknoll","id":13754588,"avatar_url":"https://avatars.githubusercontent.com/u/13754588?v=3","gravatar_id":"","url":"https://api.github.com/users/riknoll","html_url":"https://github.com/riknoll","followers_url":"https://api.github.com/users/riknoll/followers","following_url":"https://api.github.com/users/riknoll/following{/other_user}","gists_url":"https://api.github.com/users/riknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/riknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riknoll/subscriptions","organizations_url":"https://api.github.com/users/riknoll/orgs","repos_url":"https://api.github.com/users/riknoll/repos","events_url":"https://api.github.com/users/riknoll/events{/privacy}","received_events_url":"https://api.github.com/users/riknoll/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-11T23:15:02Z","updated_at":"2015-11-19T17:27:28Z","closed_at":"2015-11-17T20:17:32Z","pull_request":{"url":"https://api.github.com/repos/apache/cordova-plugin-camera/pulls/137","html_url":"https://github.com/apache/cordova-plugin-camera/pull/137","diff_url":"https://github.com/apache/cordova-plugin-camera/pull/137.diff","patch_url":"https://github.com/apache/cordova-plugin-camera/pull/137.patch"},"body":"It was apparently decided a while back (CB-5749) that we should be saving the uncompressed image with `saveToPhotoAlbum` rather than the modified image when the camera options `quality`, `targetHeight`, `targetWidth`, etc. are given. iOS supports this behavior, but Android does not. This pull request changes the Android code so that when `saveToPhotoAlbum` is specified, the uncompressed image is saved to the album and the modified image is saved to the application's cache (and that URI is what is returned to the application). This also makes it so that DATA_URL actually saves images to the gallery when the flag is enabled (this was previously not the case). This might be a breaking change for some applications that relied on the old behavior (saving one image rather than two)."},"comment":{"url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/comments/158127870","html_url":"https://github.com/apache/cordova-plugin-camera/pull/137#issuecomment-158127870","issue_url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/137","id":158127870,"user":{"login":"riknoll","id":13754588,"avatar_url":"https://avatars.githubusercontent.com/u/13754588?v=3","gravatar_id":"","url":"https://api.github.com/users/riknoll","html_url":"https://github.com/riknoll","followers_url":"https://api.github.com/users/riknoll/followers","following_url":"https://api.github.com/users/riknoll/following{/other_user}","gists_url":"https://api.github.com/users/riknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/riknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riknoll/subscriptions","organizations_url":"https://api.github.com/users/riknoll/orgs","repos_url":"https://api.github.com/users/riknoll/repos","events_url":"https://api.github.com/users/riknoll/events{/privacy}","received_events_url":"https://api.github.com/users/riknoll/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T17:27:28Z","updated_at":"2015-11-19T17:27:28Z","body":"@luofan189 What issue are you seeing? I can take a look."}}