cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Khandelwal (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-9012) FILE_URI always displays as landscape
Date Wed, 20 Apr 2016 00:10:25 GMT

     [ https://issues.apache.org/jira/browse/CB-9012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikhil Khandelwal resolved CB-9012.
-----------------------------------
    Resolution: Incomplete

We need more information to work on this issue. Please re-open if you have more details.

> 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


Mime
View raw message