Page 1 of 5

Issue with incorrect rotation of image from camera service

Posted: Mon Mar 25, 2013 8:10 pm
by Jonathan Clark

Having an issue with images captured from phones camera. When I display the captured image they are all rotated 90 deg to the left. I have tried with multiple phones just to make sure it wasn't an issue with my phone itself.

Something I noticed that may very well be related: When I add an image component in the tiggzi builder it places the component icon on the screen. I believe the icon is supposed to be a tree/leaf with a sun in the sky? If that is true, then the image icon is also rotated 90deg to the left from the moment its added to the screen.

Any thoughts?


Issue with incorrect rotation of image from camera service

Posted: Mon Mar 25, 2013 8:52 pm
by Kateryna Grynko

Hi Jonathan,

Is it Android or iOS?


Issue with incorrect rotation of image from camera service

Posted: Mon Mar 25, 2013 9:11 pm
by Jonathan Clark

So far I have only tested with android


Issue with incorrect rotation of image from camera service

Posted: Mon Mar 25, 2013 9:22 pm
by Kateryna Grynko

Thank you. We will test this issue. What is the Android version?


Issue with incorrect rotation of image from camera service

Posted: Tue Mar 26, 2013 11:11 am
by Maryna Brodina

Hello! I tested with Samsung Galaxy (Android 4.0.4) and iPhone 4 (iOS 6.0.1) - it works as expected, but I was able to reproduce it with HTC Desire Z (Android 2.3.3). What device with what version did you use to test.


Issue with incorrect rotation of image from camera service

Posted: Tue Mar 26, 2013 6:05 pm
by Jonathan Clark

Android Galaxy S3 4.1.2


Issue with incorrect rotation of image from camera service

Posted: Tue Mar 26, 2013 8:29 pm
by Kateryna Grynko

Jonathan,
We'll test this. Thanks for clarification.


Issue with incorrect rotation of image from camera service

Posted: Wed Mar 27, 2013 9:40 am
by Maryna Brodina

Hi, reproduced with Samsung Galaxy Tab (Android 4.1.1), I'll report about this problem.


Issue with incorrect rotation of image from camera service

Posted: Wed Mar 27, 2013 7:17 pm
by Jonathan Clark

I am way out of my realm here, but I was looking around the phonegap documentation and noticed a parameter for the camera.getPicture method that isn't part of the request created through the tiggzi builder:

correctOrientation: Rotate the image to correct for the orientation of the device during capture. (Boolean)

I was going to add this as a parameter in the service and test, but realized those services are not editable. I did however try turning the android into landscape mode when taking a picture and that picture did upload with the correct orientation, so it seems like this may be promising.

Again, way out of my league, but hopefully this is helpful info.


Issue with incorrect rotation of image from camera service

Posted: Wed Mar 27, 2013 9:58 pm
by Kateryna Grynko

Hello,

Thank you, this is helpful. We're testing.