A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how to compress an image in android
Joined: Feb 10, 2012
Apr 25, 2012 00:58:10
i want to compress an image and insert into database.
which compression technique should i use without loosing quality of my image....
Joined: Jun 27, 2011
Apr 25, 2012 01:17:14
compress an image and save the image
BitmapFactory.Option imageOpts = new BitmapFactory.Options (); imageOpts.inSampleSize = 2; // for 1/2 the image to be loaded Bitmap thumb = Bitmap.createScaledBitmap (BitmapFactory.decodeFile(photoPath, imageOpts), 96, 96, false);
For your reference
Software Developer, Oracle
Training Labs at EPractize Labs.
Joined: Sep 21, 2011
Apr 25, 2012 01:19:17
Lossless compression generally results in at most a 50% reduction in size - hardly worthwhile given the cost of hard disk storage these days.
I agree. Here's the link:
subject: how to compress an image in android
compress jpg image file
Image compression and decompression
WA #1.....word association
I want to compress png image(loose-less compression)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014