[TIMOB-14306] iOS: Image taken in landscape orients itself to portrait.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.2 |
Fix Version/s | n/a |
Components | n/a |
Labels | qe-3.2.0 |
Reporter | Paras Mishra |
Assignee | Unknown |
Created | 2013-06-20T09:54:15.000+0000 |
Updated | 2018-02-28T20:04:24.000+0000 |
Description
iOS: Image taken in landscape orients itself to portrait.
This is not a regression issue occurs since 3.0.0.GA
Steps to reproduce:
1.Run the app.
function fireUpTheCamera() {
Titanium.Media.showCamera({
success : function(event) {
var cropRect = event.cropRect;
var image = event.media;
Ti.API.debug('Our type was: ' + event.mediaType);
if (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {
var imageView = Ti.UI.createImageView({
width : win.width,
height : win.height,
image : event.media,
autorotate: true
});
win.add(imageView);
} else {
alert("got the wrong type back =" + event.mediaType);
}
},
cancel : function() {
},
error : function(error) {
// create alert
var a = Titanium.UI.createAlertDialog({
title : 'Camera'
});
// set message
if (error.code == Titanium.Media.NO_CAMERA) {
a.setMessage('Please run this test on device');
} else {
a.setMessage('Unexpected error: ' + error.code);
}
// show alert
a.show();
},
saveToPhotoGallery : true,
allowEditing : true,
mediaTypes : [Ti.Media.MEDIA_TYPE_VIDEO, Ti.Media.MEDIA_TYPE_PHOTO]
});
}
win = Titanium.UI.createWindow({
backgroundColor: 'blue'
});
win.addEventListener('open', function(e) {
fireUpTheCamera();
});
win.open();
2.Take image in landscape mode.
Expected:
Image should be taken in landscape mode.
Actual:
Image is shown in portrait mode.
This issue was previously scheduled to be worked on in more than one sprint: * 'Release 3.1.2' (on board '3.1.X Triage') * 'Release 3.0.1/TS 3.0.2' (on board '3.1.0 Triage') Starting from JIRA Agile 6.3, an issue can only belong to a single future sprint. Read more about this change: http://docs.atlassian.com/agile/docs-0630/Sprint+Marker+Migration This issue is now scheduled for future sprint 'Release 3.1.2' (on board '3.1.X Triage'). If this is incorrect, please update the issue accordingly. This comment was automatically generated by JIRA. If it is no longer relevant, please feel free to delete it.