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

缩放 HEIC 的时候崩溃 #184

Open
HenryWu01 opened this issue Dec 21, 2022 · 2 comments
Open

缩放 HEIC 的时候崩溃 #184

HenryWu01 opened this issue Dec 21, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@HenryWu01
Copy link

看了一下 SubsamplingScaleImageView 的 issue 和 Stackoverflow,这应该是 SubsamplingScaleImageView 那边的一个问题
Stackoverflow 上说崩溃的原因是因为 SubsamplingScaleImageView 中 Bitmap.Config 默认使用了 RGB_565 导致的。

Stackoverflow 上建议对 SubsamplingScaleImageView 设置:

SubsamplingScaleImageView.setPreferredBitmapConfig(Bitmap.Config.ARGB_8888);

Github 上说到 Bitmap.Config.HARDWARE 应该被设置为默认,但是 API > 26 && API < 28 中存在一些问题需要进行判断
更详细的解决方法在这里: davemorrissey/subsampling-scale-image-view#559 (comment)

希望大佬能看一下在 BigImageViewPager 中进行缓解,那边看上去很久没人更新了。

@SherlockGougou
Copy link
Owner

好的,我这边测试一下。希望能够提供heic图片的url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants