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

压缩时间比较长 需要十几秒 #3

Closed
liuzeze opened this issue May 6, 2019 · 1 comment
Closed

压缩时间比较长 需要十几秒 #3

liuzeze opened this issue May 6, 2019 · 1 comment

Comments

@liuzeze
Copy link

liuzeze commented May 6, 2019

不知道是不是我的代码有问题, 图片是 1920*1080的屏幕截图
Future getImage() async { await ImagePicker.pickImage(source: ImageSource.gallery).then((file) async { CompressObject compressObject = CompressObject( imageFile: file, //image path: file.parent.absolute.path, ); return Luban.compressImage(compressObject); }).then((_path) { setState(() { imgUrlList.clear(); imgUrlList.add(_path); }); }); }

@crazecoder
Copy link
Owner

压缩慢的问题,只能等待底层image去解决

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

2 participants