Compressor icon indicating copy to clipboard operation
Compressor copied to clipboard

压缩会经常出现损坏的情况

Open crazyzjw opened this issue 3 years ago • 3 comments

在pad端出现频率大 MainScope().launch { val resultList = mutableListOf<String>() paths.asFlow() .map { val compress = Compress.with(activity, File(it)) compress.setQuality(60).strategy(Strategies.compressor()).get(Dispatchers.IO).absolutePath }.flowOn(Dispatchers.IO) .catch { onPickListener?.onError() }.onCompletion { if (currentCoroutineContext().isActive) { onPickListener?.onSelected(resultList) } else { onPickListener?.onError() } }.collect { resultList.add(it) } }

crazyzjw avatar Mar 16 '21 10:03 crazyzjw

所谓的破损具体是指什么呢?

Shouheng88 avatar Jul 24 '21 16:07 Shouheng88

透明背景的图片压缩完,背景变成了黑色

chengqiuxia avatar Sep 18 '21 09:09 chengqiuxia

是不是压缩的参数存在问题?

Shouheng88 avatar Sep 18 '21 09:09 Shouheng88

我先关了这个 issue 了,如果还有问题,请提供复现的图片和代码片段

Shouheng88 avatar Jan 29 '23 09:01 Shouheng88