Gonçalo Miguel
Posts: 0
Joined: Tue May 06, 2014 10:09 am

Capture Photo Android Distortion

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Capture Photo Android Distortion

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.

Gonçalo Miguel
Posts: 0
Joined: Tue May 06, 2014 10:09 am

Capture Photo Android Distortion

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Capture Photo Android Distortion

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

Gonçalo Miguel
Posts: 0
Joined: Tue May 06, 2014 10:09 am

Capture Photo Android Distortion

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

Return to “Issues”