Resolution: Won't Fix
Affects Version/s: Release 2.1.2, Release 3.0.0
TiSDK tested 3.0 CI, 2.1.2 GA, 2.1.1 GA
Android OS 3.0 (tested on Samsung Tab)
Android camera picture height and width values are returned as the picture was always taken in landscape mode (so with size > than height size). This is only reproducible using Android tablets with OS 3.0
- Take a picture with the Tablet camera
- in the 'success:function(event)
' get the picture values using event.media.width / event.media.height or event.cropRect.width / event.cropRect.height
Result: values are always displayed with the width value > than the height value, even if the picture was taken in Portrait.
On Android 4.1.1 (Nexus Galaxy) it works fine as expected using all SDK versions.
On Android 2.2.x it works as expected using latest 3.0 CI build (for https://jira.appcelerator.org/browse/TIMOB-3887 bug fix?)
TIMOB-3887 issue looks fixed and working fine on Android 3.0
There is a workaround, which onsists in creating an imageView (with 'auto' width and height properties) from the event.image blob from the camera, and take the height/width values from there. In this way, I'm getting the correct height/width values, but this approach would eventually use a lot of device memory converting the blob to image.