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
循环压缩图片 可能会把压缩的图片输出在相同的文件地址导致覆盖 #61
Comments
同问,有什么解决办法了么 |
我是这么处理的 在他时间戳命名里再加了原有的文件名 private File thirdCompress(@NonNull File file) {
String thumb = mCacheDir.getAbsolutePath() + File.separator +
(TextUtils.isEmpty(filename) ? System.currentTimeMillis() + "_" + file.getName() : filename);
//...
} |
@Baifann 没有问题了?我试了,还是不行 |
@silentcmz 我是没问题了,我是把作者rxjava那段去掉了,自己弄得线程,可能和原来的不大一样吧。 |
@Baifann 你是对的,我的也没问题,就是排序的时候没弄好,现在也可以了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rt,我是这么循环压缩的
结果发现剪裁完的地址可能会出现相同的结果。
The text was updated successfully, but these errors were encountered: