Skip to content
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

Taro.chooseImage 支持 sizeType 参数 #124

Open
zhiqingchen opened this issue Apr 1, 2021 · 3 comments
Open

Taro.chooseImage 支持 sizeType 参数 #124

zhiqingchen opened this issue Apr 1, 2021 · 3 comments
Assignees

Comments

@zhiqingchen
Copy link
Member

问题描述

rn 端未支持 sizeType

参考文档:https://taro-docs.jd.com/taro/docs/apis/media/image/chooseImage

解决方案

todo

@iambool
Copy link

iambool commented Jul 23, 2021

(1)sizeType参数设置无效果,设置了compressed后,success回调中的图片size跟原图一致;
(2)sizeType参数 = ["original", "compressed"] ,选择图片时,没有给出是否原图的选择入口;
以上问题点可参考微信小程序实现

@iChengbo
Copy link
Collaborator

(1)sizeType参数设置无效果,设置了compressed后,success回调中的图片size跟原图一致;
(2)sizeType参数 = ["original", "compressed"] ,选择图片时,没有给出是否原图的选择入口;
以上问题点可参考微信小程序实现

@iambool chooseImagereact-native-syan-image-picker 实现,该依赖对压缩功能不友好,且与微信小程序表现形式不一致

@zhiqingchen
Copy link
Member Author

还得再找找有没有更好的库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants