File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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.
It is sorta covered in the
JavaRanch Style Guide
subject: how to compress an image in android
compress jpg image file
Image compression and decompression
I want to compress png image(loose-less compression)
WA #1.....word association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014