You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Richard B Knoll (JIRA)" <ji...@apache.org> on 2016/02/23 00:32:18 UTC

[jira] [Commented] (CB-9012) FILE_URI always displays as landscape

    [ https://issues.apache.org/jira/browse/CB-9012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157948#comment-15157948 ] 

Richard B Knoll commented on CB-9012:
-------------------------------------

[~wallstudios] ping

> FILE_URI always displays as landscape
> -------------------------------------
>
>                 Key: CB-9012
>                 URL: https://issues.apache.org/jira/browse/CB-9012
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 3.6.0
>         Environment: Developing on MAC running Android studio (1.2)  Cordova 5.0.0 
>            Reporter: matthew Wall
>            Priority: Minor
>              Labels: android, wfc
>
> When I capture an image using the camera plugin (on Android) it always renders the image in landscape made. 
> {code:javascript}
> navigator.camera.getPicture(onPhotoURISuccess, onFail, { 
> correctOrientation: true,
> quality: 70,
> allowEdit: false,
> destinationType: destinationType.FILE_URI,
> sourceType: Camera.PictureSourceType.CAMERA,
> saveToPhotoAlbum: false,
> encodingType: Camera.EncodingType.JPG,
> targetWidth: 1500,
> targetHeight: 1500,
> 	 });
> {code}
> and within the function 
> {code:javascript}
> onPhotoURISuccess(imageURI) {
> $(img).attr("src", imageURI);
> }
> {code}
> the image is always rendered in landscape.
> Using correctOrientation: true has no effect. 
> This happens on Samsung devices running 4.4 and Sony Xperia phone running 4.4.4 but also in the AVD nexus5 running 5.0.1 but displays correctly on a device running 5.1
> I've reduced file size down to next to nothing and it still does the same thing. 
> The app itself is set to portrait mode only.



--
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