[
https://issues.apache.org/jira/browse/CB-9012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15009242#comment-15009242
]
Richard B Knoll commented on CB-9012:
-------------------------------------
I don't have a device that has the {{correctOrientation}} bug, so I can't
reproduce this. Could you please post an image taken with the device? This
problem is likely to do with EXIF data that is being included in the image, so
an actual image might be enough to debug. It would be great if you could
provide one taken with the above camera options and another taken with just
this camera option and nothing else:
{code:javascript}
{
quality: 100
}
{code}
> 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
> Labels: android
>
> 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: [email protected]
For additional commands, e-mail: [email protected]