Inverted camera image when Rho::Camera.takePicture in ET1 by RhoStudio 5.1.1

// Expert user has replied.
N Nick Peng 3 years 6 months ago
2 4 0

I use Rho::Camera.takePicture in ET1 by RhoStudio 5.1.1.
But camera UI was inverted.
Actually the image is rotated by 90 degrees clockwise in ET1.

How to fix this problem?

Please Register or Login to post a reply

4 Replies

J Joydeep Chakraborty

This is a Bug and will be solved in RMS 5.3 release.
Please use this commit to fix the issue on 5.1.
SPR28297Fix · rhomobile/rhodes@02300d4 · GitHub

A Adel Sari

This is a known issue on some devices, as you can read on the Camera API doc (5.1.1)

OUTPUT_FORMAT_DATAURI
This is a base 64 encoding of the image and can be used to easily embed the image on the page or store the image in a database. On some consumer devices, captured image will be rotated 90 degrees while displaying.
http://docs.rhomobile.com/en/5.1.1/api/camera

I have the same problem.
Call Rho::Camera in ET1 by RhoMobile 5.1.1.
The image on screen is rotated by 90 degrees.

How to fix it?

N Nick Peng

However, I try camera example from rhodes-system-api-samples(https://github.com/rhomobile/rhodes-system-api-samples).
It still has the same problem in ET1.

CONTACT
Can’t find what you’re looking for?