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
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Remember to control the size of captured images

Post by MarkDuignan » Fri Sep 11, 2015 8:41 am

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 ... /image.htm

Post Reply