Compressor icon indicating copy to clipboard operation
Compressor copied to clipboard

Does not work

Open CurvesTech opened this issue 6 years ago • 7 comments

The resulting image was bigger than the actual image. i set max width 640 and height 480, expecting result in kb, but a 3 mb image went up 9 mb.

CurvesTech avatar Mar 27 '18 07:03 CurvesTech

samer here +1

Hemant0601 avatar Apr 13 '18 16:04 Hemant0601

yes, I have the same issue, this is my code: Bitmap bitmap = new Compressor(this) .setMaxHeight(2000) .setMaxWidth(2000) .setQuality(80) .compressToBitmap(file); original image size is: 4096 x 2304 and the result bitmap size is 36MB

phoeson avatar Sep 25 '18 16:09 phoeson

Same here

jifferon avatar Jan 31 '19 11:01 jifferon

Same here

ng28 avatar Apr 10 '19 05:04 ng28

@ng28 @egorikem @KevinPan @Hemant0601 @CurvesTech works well in some devices but do the same in android oreo but i can't get access to the phone

does it throw any exception ?

FaridBen95 avatar Jun 15 '20 07:06 FaridBen95

iI guess it has a relation with ExifInterface because some phone change the orientation of the images

FaridBen95 avatar Jun 15 '20 07:06 FaridBen95

To compress, this library uses quality to create the bitmap and, according to Android documentation, when you use PNG the quality is ignored.

Because of that the image grows, sometimes. Well, that was my problem. So use JPG...

SMontiel avatar Aug 14 '20 03:08 SMontiel