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

无法打开图片文件 #10

Closed
ZhouZhiMin1 opened this issue Oct 20, 2019 · 2 comments
Closed

无法打开图片文件 #10

ZhouZhiMin1 opened this issue Oct 20, 2019 · 2 comments

Comments

@ZhouZhiMin1
Copy link

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: Exception: FileSystemException: Cannot open file, path = '/data/user/0/com.example.im_flutter/cache/Android.jpg/img_1571561019173.jpg' (OS Error: No such file or directory, errno = 2)

@ZhouZhiMin1
Copy link
Author

print("图片原始大小:${image.length()}");
print("图片输出路径:$outPath");
CompressObject object = CompressObject(
imageFile: image,
path: outPath,
quality: 85,
step: 9,
mode: CompressMode.LARGE2SMALL
);
String path = await Luban.compressImage(object);

@ZhouZhiMin1
Copy link
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

2 participants