CompressTools-Android icon indicating copy to clipboard operation
CompressTools-Android copied to clipboard

安卓图片压缩,尽可能保证图片质量,清晰度的压缩。

Results 13 CompressTools-Android issues
Sort by recently updated
recently updated
newest added

CompressTools.newBuilder(this) .setMaxHeight(1920) .setMaxWidth(1080) .setQuality(60) .setFileName(System.currentTimeMillis() + "_compress") .setDestinationDirectoryPath(SAVE_PATH) .build() .compressToFile(file, new CompressTools.OnCompressListener() { @Override public void onStart() { Log.d("xx", "compressPic----" + "onStart"+ file.length()); } @Override public void onFail(String error) {...

![image](https://user-images.githubusercontent.com/29592983/49417389-7859e300-f7b8-11e8-8d0b-2a7430d746b0.png) 这个问题怎么解决,权限都是有的,是不是你的代码有问题,看了回复的压根没有提出解决方案

使用第三方图片选择框架时 (比如知乎的matisse) 一直无法找到路径

图片本地文件压缩,没有走成功回调方法

看了一下代码 CompressTools类中的generateFilePath方法没有使用给定的fileName,而是使用的系统时间戳作为文件名,代码如下: ``` private static String generateFilePath(Context context, String parentPath, Uri uri, String extension, String prefix, String fileName) { File file = new File(parentPath); if (!file.exists()) { file.mkdirs(); } return...

```java CompressTools.newBuilder(mView.getContext()) .setKeepResolution(true) .setBitmapFormat(Bitmap.CompressFormat.PNG) .setDestinationDirectoryPath(FileManager.getInstance().getPicDirPath()) .setQuality(70) .build() .compressToFile(file, new CompressTools.OnCompressListener() { @Override public void onStart() { Log.d("TAG", "onStart: "); } @Override public void onFail(String error) { Log.e(TAG, "onFail: " +...

retrofit在上传多图的时候压缩 会先触发请求 再进行压缩 导致请求不能第一时间拿到压缩后的图片

是不是 FileProvider 的问题。查一下吧~

W/ExifInterface: Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface. java.io.IOException: Invalid marker: 89 at...