-
Notifications
You must be signed in to change notification settings - Fork 403
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
Choose MIME type for saving image? #234
Comments
PR is welcome! |
Redmi K40S,Android 12, image 加载onSuccess后:/data/user/0/com.example.testapp/cache/1670055364173_1, java.lang.IllegalArgumentException: Unsupported MIME type image/jpg 大佬,这是bug, 还是我使用错误? |
应该还是新的 Android 系统存储权限相关的兼容性问题,我抽空看看更新一下吧 |
将mCurrentImageFile替换成外部私有目录下的图片(xxx.png),把saveImageIntoGallery中的方法拿出来使用并没有什么错误。但是在demo中直接使用saveImageIntoGallery方法就出错. targetSdkVersion 29 没问题, targetSdk 32 报错。 |
@WonderfulHotel 我在 API 32 的模拟器,以及 API 31 的小米真机上测试 demo 的 LongImageActivity 里的 saveImageIntoGallery,项目设置 target API 33,都没有问题。 |
I came on here as my app was crashing on Android 11 due to the jpg/jpeg issue, but am I right in saying that ALL images are saved as jpeg? My app serves up images as either webp or animated gif images so would be good if I was able to save in these formats, either by auto-checking the filename, or forcefully choosing the mime type in the code.
Possible?
Thanks.
The text was updated successfully, but these errors were encountered: