Compressor icon indicating copy to clipboard operation
Compressor copied to clipboard

An android image compression library.

Results 120 Compressor issues
Sort by recently updated
recently updated
newest added

当我qualtiy=80时 我 228.5kb图片压缩至18kb 283.7kb的图片压缩到了215.6kb 1.8mb的图片压缩到73kb 2.88mb的图片压缩到了79.2kb 请问这个qualtiy是代表什么 怎么解释这个规律 谢谢

如果单纯只是拿到bitmap,并对bitmap压缩后直接使用。(看示例提供的api方法都是针对目标文件路径压缩,现在只有bitmap,难道还得先写入文件文件?这里写入文件的bitmap如果不压缩直接就有可能oom啦)

How can i make it work with fragments, been getting unresolved reference.

Unresolved reference on compile sdk 27 and 28

compressedImage=new Compressor(this) .setMaxHeight(5000) .setMaxWidth(2000) .setQuality(100) .compressToFile(actualImage); 未压缩前面是3.5m,压缩后是4.8m

[This issue](https://github.com/zetbaitsu/Compressor/issues/11) claims the library keeps the EXIF data from the original file, but it seems to ONLY take into account the image orientation, and does not pass along any...

Failed to allocate a 3230412 byte allocation with 1117760 free bytes and 1091KB until OOM id.zelory.compressor.ImageUtil.decodeSampledBitmapFromFile ``` dalvik.system.VMRuntime.newNonMovableArray (VMRuntime.java) android.graphics.BitmapFactory.nativeDecodeStream (BitmapFactory.java) android.graphics.BitmapFactory.decodeStreamInternal (BitmapFactory.java:663) android.graphics.BitmapFactory.decodeStream (BitmapFactory.java:639) android.graphics.BitmapFactory.decodeFile (BitmapFactory.java:405) id.zelory.compressor.ImageUtil.decodeSampledBitmapFromFile (ImageUtil.java:56) id.zelory.compressor.ImageUtil.compressImage...

The reqHeight and reqWidth should be satisfy at least one side.

` if (height > reqHeight || width > reqWidth) { inSampleSize *= 2; final int halfHeight = height / 2; final int halfWidth = width / 2; // Calculate the...