Skip to content

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

Description

@openproject

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions