We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好,我在项目中引用了一个图片选择库,并且剪裁之后使用您的库进行压缩,然而打印日志发现了一个问题。剪裁出的圆形图片压缩后,file依然是原文件,使用其他剪裁出来的图片可以正常压缩,想请教一下是什么原因。 这是我用的图片库地址:https://github.com/yangpeixing/YImagePicker
The text was updated successfully, but these errors were encountered:
首先检查你裁剪后的输出资源的正确性,裁剪api调用是否正确。一般裁剪后的图片大小已经可以接受了,考虑下是否还需要压缩
Sorry, something went wrong.
裁剪确实是正确的,当我裁剪出一个方形图片的时候,压缩该图是有用的。当我裁剪圆形图片的时候,压缩是无效的,返回的file和压缩前是一个对象。大图和小图都是如此,您可以试一试
我重试几次后发现,有的图不会被压缩 我的打印日志是: 压缩原图大小 : 8038910 ploadImage: 开始压缩 ploadImage: 压缩后大小 : 2704757 ploadImage: 压缩完成 压缩原图大小 : 877276 ploadImage: 开始压缩 ploadImage: 压缩后大小 : 877276 ploadImage: 压缩完成 压缩原图大小 : 121402 ploadImage: 开始压缩 ploadImage: 压缩后大小 : 121402 ploadImage: 压缩完成 压缩原图大小 : 6378804 ploadImage: 开始压缩 ploadImage: 压缩后大小 : 2269838 ploadImage: 压缩完成
调用代码是Luban.with().load(filePath).useDownSample(true).ignoreBy(200).quality(70).compressObserver { onSuccess = { Timber.d("压缩后大小 : ${it.length()}")
No branches or pull requests
您好,我在项目中引用了一个图片选择库,并且剪裁之后使用您的库进行压缩,然而打印日志发现了一个问题。剪裁出的圆形图片压缩后,file依然是原文件,使用其他剪裁出来的图片可以正常压缩,想请教一下是什么原因。
这是我用的图片库地址:https://github.com/yangpeixing/YImagePicker
The text was updated successfully, but these errors were encountered: