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

BitmapUtil.saveBitmap()方法的图片质量和大小问题 #4

Open
openproject opened this issue Feb 12, 2016 · 1 comment
Open

BitmapUtil.saveBitmap()方法的图片质量和大小问题 #4

openproject opened this issue Feb 12, 2016 · 1 comment

Comments

@openproject
Copy link

有一行压缩代码如下:
bitmap.compress(Bitmap.CompressFormat.PNG, 100, fos);
因为大部分图片还是JPG的,这样会导致本来不大的jpg图片保存到本地后变的很大(100k的jpg保存到本地可能变成1M),而且这个质量参数也不能调。
我觉得这个方法可以优化。

@Sloaix
Copy link
Contributor

Sloaix commented Aug 25, 2016

你可以fork下项目,提交一个PR。

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