You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/08/29 22:06:20 UTC
[jira] [Commented] (CB-4078) correctOrientation is not working on
camera.getPicture for PHOTOLIBRARY (works with Camera)
[ https://issues.apache.org/jira/browse/CB-4078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15447197#comment-15447197 ]
ASF subversion and git services commented on CB-4078:
-----------------------------------------------------
Commit f2b4eeded069d791aec0670b369bab8fb3bfd0eb in cordova-plugin-camera's branch refs/heads/master from [~swbradshaw]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-camera.git;h=f2b4eed ]
CB-4078: Fix for orientation/scaling on Android 4.4+ devices
The only way to get rotation for photos in library (Gallery, File
System, Google Drive,etc) is to first create a temporary file from the
provider. Only then can we determine the orientation and scale the
bitmap correctly. By doing it in a central place, it eliminates reading
the inputstream repetitively in the plugin.
> correctOrientation is not working on camera.getPicture for PHOTOLIBRARY (works with Camera)
> -------------------------------------------------------------------------------------------
>
> Key: CB-4078
> URL: https://issues.apache.org/jira/browse/CB-4078
> Project: Apache Cordova
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Plugin Camera
> Affects Versions: 2.9.0
> Environment: Android
> Reporter: aligo
> Priority: Minor
> Labels: Android, Triaged
>
> Hi
> I use cameraOptions below to get the FILE_URI and to display in <img> tag:
> {code}
> correctOrientation: true
> quality: 50
> encodingType: Camera.EncodingType.JPEG
> targetWidth: 300
> targetHeight: 300
> destinationType: window.navigator.camera.DestinationType.FILE_URI
> sourceType: window.navigator.camera.PictureSourceType.PHOTOLIBRARY
> {code}
> But the picture displayed within wrong orientation.
> Updated:
> I try use window.navigator.camera.PictureSourceType.CAMERA in sourceType, and everything work as expected.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org