压缩不成功
Opened this issue · 3 comments
wxxgit commented
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) {
Log.d("xx", "compressPic----" + "onFail");
}
@Override
public void onSuccess(File f) {
Log.d("xx", "compressPic----" + "onSuccess----" + f.length());
upFile = f;
}
});
回调只有onStart()返回了
lindroy commented
今天遇到相同的问题。
CharlesWWT commented
同,安卓7.0只有onStart回调,安卓9.0什么回调都不走
lexluthors commented
这个停止维护了,你用luban这个框架吧
…---原始邮件---
发件人: "Graves"<notifications@github.com>
发送时间: 2021年1月14日(周四) 上午10:54
收件人: "lexluthors/CompressTools-Android"<CompressTools-Android@noreply.github.com>;
抄送: "Subscribed"<subscribed@noreply.github.com>;
主题: Re: [lexluthors/CompressTools-Android] 压缩不成功 (#13)
同,安卓7.0只有onStart回调,安卓9.0什么回调都不走
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.