Skip to content

压缩无效,返回原图片的相对路径 #397

@oudengding

Description

@oudengding

android 11, 没有使用setTargetDir()方法,压缩后返回原图片的相对路径

代码:
Luban.with(context)
.load(uri)
.ignoreBy(100)
//.setTargetDir(dir.getAbsolutePath())
.filter(path -> {
return !(TextUtils.isEmpty(path));
})
.setCompressListener(onCompressCallback)
.launch();

压缩后的图片:/camera_photos/Pictures/JPEG_20211011_140125.jpg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions