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
REST with Spring (video course)
this week in the
how to compress an image in android
Joined: Feb 10, 2012
Apr 25, 2012 00:58:10
i want to compress an
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
I want to compress png image(loose-less compression)
Image IO problem
Google snappy compression
How to compress a image toke from Screen (code avaiable)
Part 2 -Upload restrictions and creating the .jar file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015