GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-04-15T21:29:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2014 Sprint 08, 2014 Sprint 08 SDK, Release 3.3.0 |
Components | Android |
Labels | andoid, imageview, module_media, overlay, qe-closed-3.3.0, qe-testadded, showcamera, supportTeam |
Reporter | Nicholas Cooper |
Assignee | Vishal Duggal |
Created | 2013-11-20T17:34:37.000+0000 |
Updated | 2014-07-29T17:02:52.000+0000 |
When using Ti.Media.showCamera with an overlay on Android the returned media does not rotate correctly within an ImageView when autorotate is true.
Removing the overlay from the same code fixes the problem.
Hello, We have tested this issue with the test code below. It’s working fine for us. Please try out this code to see if you can reproduce it. If you continue to encounter this issue, please send us your test sample.
Testing environment:
OS: MAC OS X 10.8.5 Ti SDK: 3.1.3 GA Ti CLI: 3.2.0 Android SDK 2.3.3 DeviceTest code
Step to test
1. Create a new project 2. Paste test code in app.js 3. Now run on Android Device 4. Click on button to camera h5. Expect Result/Actual Result Overlay image rotate good ThanksHello Nicholas, can you please test the testcase and see if works for you? TIA! Best, Mauro
Tested and can't reproduce.
I've updated the test case, after you call TakePicture the image is rotated incorrectly, autoRotate does not work.
Tested the above code on Galaxy SII (2.3.6) with 3.2.0.GA. The image does not rotate correctly no matter whether the overlay is set or not.
I have a pull request that fixes this issue: https://github.com/appcelerator/titanium_mobile/pull/4968 I have a jar that fixes this if anyone want's it in advance of 3.3
[~andrew@gstreetmedia.com], thank you. Have you signed a CLA?
Yep.
Testing steps: 1. Run this code
2. Click on open camera button. 3. Click on button in middle to take picture. 4. If you don't see the image (likely due to timob-16508), go to gallery and observe the image. Make sure it shows the right orientation 5. If you see the image, check to see if orientation is correct.
master PR: https://github.com/appcelerator/titanium_mobile/pull/5392
Above PR closed. New PR https://github.com/appcelerator/titanium_mobile/pull/5597
Verified fix with below environment: Appc Studio: 3.3.0.201404211130 SDK build: 3.3.0.v20140422163054 acs: 1.0.14 npm: 1.3.2 alloy: 1.4.0-dev CLI: titanium-3.3.0-dev titanium-code-processor:1.1.1-beta1 Xcode: 5.1.1 Osx: Mavericks(10.9.2) Device: Galaxy Nexus (4.1) Image displayed with correct orientation. Hence closing the issue.