Open zhaoweiguo5505 opened 2 years ago
android11返回是对的 但是androidQ 返回的图片是灰色
PictureSelector.create(this) .openGallery(PictureMimeType.ofAll()) .selectionMode(PictureConfig.MULTIPLE) .maxSelectNum(maxSelect) .selectionData(selectData) .cropImageWideHigh(1,1) .isEnableCrop(isCorp) .isAndroidQTransform(true) .imageEngine(GlideEngine.createGlideEngine()) .forResult(object : OnResultCallbackListener { override fun onResult(result: List) { // 结果回调 block.invoke(result as MutableList) }
override fun onCancel() { // 取消 } })
查找到 .cropImageWideHigh(1,1) 添加这个属性 androidQ 裁剪后 图片就会变黑
这个不是因为图片被缩放在1像素么
android11返回是对的 但是androidQ 返回的图片是灰色
PictureSelector.create(this) .openGallery(PictureMimeType.ofAll()) .selectionMode(PictureConfig.MULTIPLE) .maxSelectNum(maxSelect) .selectionData(selectData) .cropImageWideHigh(1,1) .isEnableCrop(isCorp) .isAndroidQTransform(true) .imageEngine(GlideEngine.createGlideEngine()) .forResult(object : OnResultCallbackListener {
override fun onResult(result: List) {
// 结果回调
block.invoke(result as MutableList)
}