I want to compress my image and upload to the server. This compression should depend on the size of the image. Or it will help if we have an API in the iPhone to get image resolution so that based on this resolution I can set the compression ratio.
Thanks Jithen
There is nothing in the iOS SDK to give you the image size in inches from a given pixel, one option is to determine which device your application is running on , and then calculate the size in inches for the image object .
image.size.width image.size.height...
image.size.width
image.size.height
, image.scale. , , , 1/264.0 ( Wikipedia)...
image.scale
1/264.0