LuckSiege / LuckSiege/PictureSelector

AndroidQ 采用裁剪 返回的cutpath 不对。 查看文件发现变黑色

Open
#2,186 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

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() {
// 取消
}
})

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the crop flow from the issue's PictureSelector.create(this) example on Android Q, then compare the returned image with Android 11. Trace the isAndroidQTransform(true) and cropImageWideHigh(1,1) entry points; done means the cropped result is not gray or black and the returned cut path is correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.