mobilePickPhoto & Picture Quality

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
simon.schvartzman
Posts: 672
Joined: Tue Jul 29, 2014 12:52 am

mobilePickPhoto & Picture Quality

Post by simon.schvartzman »

Hi all, I'm confused ( :cry: ) about how to set the resulting picture quality when taking pictures using mobilePickPhoto.

Is just a matter of setting the template image (width and height properties) before calling mobilePickPhoto or is there any other (better) way?

Just to show what I mean I'm attaching two pictures taken at about the same distance and with the same device, the first picture was taken using LC mobilePickPhoto and the second with the camera option of the WhatsApp App as can be seen the image quality is much better in the second case.
mobilePickPhoto
mobilePickPhoto
whatsapp camera
whatsapp camera
It should be pointed out that size of the files are completely different 155K vs 1.5M...

Many thanks in advance
Simon
________________________________________
To "AI", or not to "AI", that is the question
simon.schvartzman
Posts: 672
Joined: Tue Jul 29, 2014 12:52 am

Re: mobilePickPhoto & Picture Quality

Post by simon.schvartzman »

And the answer is: the quality of the picture (and hence the file size) is defined by the maxwidth and maxheight parameters of the mobilePickPhoto command.

I should have known it ...

p.s.: Since mobilePickPhoto can't be safely used on Android because it has pending to be fixed bugs (https://quality.livecode.com/show_bug.cgi?id=22054) (going back to more than one year) I've been forced to use cameraControlCreate instead and now I have to find out how to control de picture quality in this context. Any help with this will be greatly appreciated.
Simon
________________________________________
To "AI", or not to "AI", that is the question
Post Reply