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
好像是导致不清晰的原因 #95
Milestone
Comments
哦 还有和问题 220行 if (file.length() / 1024 < 150) return file; 最好不要直接返回 file 哦 可以直接拷贝一到目标文件 否则用完压缩图片要删除的逻辑 就把原图删了 .. 一点建议 祝好 ^ , ^ |
关于返回原图的问题,我想探讨一下:
2.压缩完要删除原图的需求 只是简单说下自己的想法,说的不对的地方,见谅:) |
如果图片需要压缩 可能是要做上传的 这个时候就需要 清理压缩后的数据了 不是删除原图 而是压缩后的小图 |
Bitmap.createScaledBitmap() 那可是在内存里的对象 而不是文件 |
嘿嘿 其实 这问题 不会有那么大分歧 使用环境不同嘛 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
213, 214 行 width 和 height 转变成了 最短边 和 最长边
可是后面有用它来当做宽高来计算 (取名字 多么重要)
是不是想写 ?
The text was updated successfully, but these errors were encountered: