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

``` new Compressor(getContext()) .setMaxWidth(1080) .setMaxHeight(1080) .setQuality(84) .setCompressFormat(Bitmap.CompressFormat.JPEG) .setDestinationDirectoryPath(local_paths.getLocal_images() + "/") .compressToFile(new java.io.File(out_put_thumbnail_path), current_timeMsec + ".jpg"); ``` I set the max to 1080 but the image resolution still above 1080 and...

感谢作者,这是一个非常牛逼的图片压缩库;这两天升级了V2.1.0版本,发现设置maxWidth,maxHeight无效;原先一张10M的图片,如果设置了width,往往能压缩到200k左右,现在压缩后还有1.2M,麻烦作者检查一下,多谢。

try{ compressed=new Compressor(this).compressToBitmap(compressedFile); }catch (IOException e){ e.printStackTrace(); } error: Compressor is abstract; cannot be instantiated

compressedImage = new Compressor (context) .setDestinationDirectoryPath(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).getAbsolutePath()) .compressToFile(new File(imagePaths));

Custom compress does not apply. Tried in different emulators & real devices and different images. **Without compression;** Image size: 6.1 MB **After default compression;** Image size: 2 MB **After custom...

This is more a question than a issue. If I don't set maxHeight and maxWidth library picks up following variables. private int maxWidth = 612; private int maxHeight = 816;...

Hi, setMaxWidth and setMaxSize is only used for image sampling, I don't have the requested image pixel numbers in output. (I've checked in code also). Im using 2.1.0 version.

确实存在部分机型拍出之后,压缩文字模糊不清楚的问题~

I have double checked the file I'm using for compressToFile() is indeed an image file. I have succeeded using the exact same file for uploading it as is. Though compressToFile()...