[
https://issues.apache.org/jira/browse/CB-9012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15012186#comment-15012186
]
Richard B Knoll commented on CB-9012:
-------------------------------------
Okay, so I can actually reproduce this using the 5.0.1 AVD like you said in
your description. As I mentioned above, it looks like the image that the camera
is taking is being saved without any orientation in its EXIF. The EXIF data is
being read, but orientation comes back as 0. Unfortunately, there might not be
much we can do about that (it's really up to the camera app to properly save
the orientation data).
> 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]