I use this method to compress an image
if(bitmapObject.compress(Bitmap.CompressFormat.PNG, 100, fOut))
{
...
}
But the image I get is much smaller ( in the dimension ) that was before the compress action.
My application need to send the compressed image thru the network – so i want to send as less data as I can … but I must to keep the original size of the image.
Is there some other way to keep the original bitmap dimension with some compress ?
Are you sure it is smaller?
Gives
Maybe you get your bitmap from a resource, in which case the bitmap dimension will depend on the phone screen density