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

在微信点击保存图片,然后用tiny来压缩该图片,不会压缩,还是显示原图 #82

Open
linhaosheng opened this issue Jan 13, 2020 · 1 comment

Comments

@linhaosheng
Copy link

No description provided.

@linhaosheng
Copy link
Author

配置是这样得 Tiny.FileCompressOptions compressOptions = new Tiny.FileCompressOptions();
compressOptions.config = Bitmap.Config.RGB_565;
compressOptions.size = 200;
compressOptions.quality = 50;
compressOptions.isKeepSampling = false;
把 compressOptions.isKeepSampling = false 发现最多会压缩一半,如果是1MB ,压缩结果大概是 800kb,如果把 compressOptions.isKeepSampling = true,则没有压缩

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

1 participant