Remember to control the size of captured images

Please mark posts as being for RPG or RDMLX (LANSA) developers.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MarkDuignan
Posts: 345
Joined: Tue Apr 17, 2012 7:33 pm

Remember to control the size of captured images

Post by MarkDuignan » Thu Sep 10, 2015 5:41 pm

I notice that the new iPhones have 12 megapixel cameras – and some Android devices use 17+ mega pixel cameras now.

Generally (in commercial applications) you should control the maximum size of images that are captured by setting appropriate properties on the image element.

By default the image element will capture images at their native resolutions.

For example a new iPhone 6 will by default capture a much larger native image then iPhone 4S (say).

That can mean using up a lot more bandwidth and time to transmit them to the server and then a lot more IFS disk space to store them.

Another aspect of capturing images is that sending a 12megapixel image out to a device and then scaling it down to be a thumbnail is a very, very inefficient technique.

Refer to Notes 2, 3 and 4 at the end of http://www.longrangemobile.com/docs/LRP ... /image.htm

Post Reply