SherlockGougou / BigImageViewPager

🔥🔥🔥 BigImage ImageView ViewPager 支持超长图、超大图的图片浏览器,优化内存,支持手势放大、下拉关闭、查看原图、加载百分比、保存图片等功能。
Other
2.14k stars 248 forks source link

HEIC加载失败 #190

Closed LeonShannon closed 1 year ago

LeonShannon commented 1 year ago

SDK版本:7.2.2 Android版本:Android13 手机型号:vivo V1955A 出错URL:https://switch-cdn.vgjump.com/Android_1681181317625_d2959134-f14b-4b7b-9f41-5c08fb72c4cb

使用ImageUtil.getImageTypeWithMime,得到的结果是heif。我用自己的glide是可以加载出来的,但是点击查看大图就不行了,图就裂开了

SherlockGougou commented 1 year ago

这张图片我在Chrome也打不开呢,显示一个小白块。

SherlockGougou commented 1 year ago

你的原图和缩略图的url分别是什么?我模拟看一下

LeonShannon commented 1 year ago

缩略图:https://switch-cdn.vgjump.com/Android_1681181317625_d2959134-f14b-4b7b-9f41-5c08fb72c4cb?imageView2/2/w/1080/h/0/format/webp/q/75|imageslim 原图:https://switch-cdn.vgjump.com/Android_1681181317625_d2959134-f14b-4b7b-9f41-5c08fb72c4cb

问题描述的有点问题,缩略图我经过了七牛压缩转换,所以可以打开。 我在Chrome打开也是小白块。

你访问这个地址,可以得到图片的信息:https://switch-cdn.vgjump.com/Android_1681181317625_d2959134-f14b-4b7b-9f41-5c08fb72c4cb?imageInfo

SherlockGougou commented 1 year ago

缩略图:https://switch-cdn.vgjump.com/Android_1681181317625_d2959134-f14b-4b7b-9f41-5c08fb72c4cb?imageView2/2/w/1080/h/0/format/webp/q/75|imageslim 原图:https://switch-cdn.vgjump.com/Android_1681181317625_d2959134-f14b-4b7b-9f41-5c08fb72c4cb

问题描述的有点问题,缩略图我经过了七牛压缩转换,所以可以打开。 我在Chrome打开也是小白块。

你访问这个地址,可以得到图片的信息:https://switch-cdn.vgjump.com/Android_1681181317625_d2959134-f14b-4b7b-9f41-5c08fb72c4cb?imageInfo。

这个原图的链接依旧是有问题的,如果可用的话至少可以当做文件下载下来,确认一下你们是否开启了七牛云的原图保护。

LeonShannon commented 1 year ago

这个地址修复了一下,https://switch-cdn.vgjump.com/Android_1681181317625_d2959134-f14b-4b7b-9f41-5c08fb72c4cb。我用我自己的glide加载成功了,但是查看大图还是裂了

另外这个地址也可以参考下,https://switch-qn.vgjump.com/IMG_1012.HEIC

LeonShannon commented 1 year ago

https://switch-qn.vgjump.com/IMG_1012.HEIC。 在demo上用这个地址,点击“最简单调用”也是裂了。

image
SherlockGougou commented 1 year ago

大概看到原因了,我这边修复一下。稍等几分钟。

SherlockGougou commented 1 year ago

7.2.3修复了,可以再试一下,要稍等几分钟,jitpack还在编译中。

SherlockGougou commented 1 year ago

已经编译完成,如果 有问题再回复。

LeonShannon commented 1 year ago

fixed。辛苦啦~