-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
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
在项目中使用遇到一个问题 #8
Comments
首先检查你裁剪后的输出资源的正确性,裁剪api调用是否正确。一般裁剪后的图片大小已经可以接受了,考虑下是否还需要压缩 |
裁剪确实是正确的,当我裁剪出一个方形图片的时候,压缩该图是有用的。当我裁剪圆形图片的时候,压缩是无效的,返回的file和压缩前是一个对象。大图和小图都是如此,您可以试一试 |
我重试几次后发现,有的图不会被压缩 调用代码是Luban.with().load(filePath).useDownSample(true).ignoreBy(200).quality(70).compressObserver { |
您好,我在项目中引用了一个图片选择库,并且剪裁之后使用您的库进行压缩,然而打印日志发现了一个问题。剪裁出的圆形图片压缩后,file依然是原文件,使用其他剪裁出来的图片可以正常压缩,想请教一下是什么原因。
这是我用的图片库地址:https://github.com/yangpeixing/YImagePicker
The text was updated successfully, but these errors were encountered: