Page 1 of 1

Capture Photo Android Distortion

Posted: Wed May 14, 2014 4:08 pm
by Gonçalo Miguel

Hi, i ́m trying to get the example from http://docs.appery.io/tutorials/using... to work with camera component.

I ́m having some troubles and i ́ll try to explain what ́s happening.

When i click on the take photo button, all it ́s ok.

When i click the native take photo,
A. On iOS it appears a rectangle and a move and Scale menu and a button "use". I cannot move and scale, but i can use this image. I saved it to database and i can use later.

B.on Android, there is no rectangle and no move and scale, just an button to "use" this image.

After this, when i see the images:
A. iOS get cropped as it shows on rectangle

B. Android image is "streched" and i cannot use it like that (for faces is terrible...)

How can i crop , or get the full image without distortions on android ?

Thanks,
Gonçalo


Capture Photo Android Distortion

Posted: Wed May 14, 2014 11:55 pm
by Illya Stepanov

Hello -

Please can you post the screen shots for Android and iOS, that you're getting?
And tell us, on what devices you're testing, OS versions on these devices.


Capture Photo Android Distortion

Posted: Thu May 15, 2014 1:13 pm
by Gonçalo Miguel

This is the screenshot on Android, the one that do the distortion.
(iOS it ́s ok)

Tested Devices:
A. Lazer X40e , Android : 4.2.2 (hawaii)
B. Huawei Ascend G500: 4.1.1 (hawaii)

Image
Image


Capture Photo Android Distortion

Posted: Fri May 16, 2014 7:05 am
by Kateryna Grynko

Hi Gonçalo,

Most probably, an image is stretched only when it is in Image component. You can use the following CSS to set its width and height:pre[name=imageName]{
width:auto;
height:200px;
}/pre


Capture Photo Android Distortion

Posted: Fri May 16, 2014 2:03 pm
by Gonçalo Miguel

Thank you, i changed the size of image component to 200px , auto .
Thanks, it worked