部分jpg图片链接无法显示的问题,kf.setImage(with: URL(string: url), placeholder: placeholder)
sunjianios opened this issue · comments
xcode 15.2
Kingfisher (7.9.1)
无法显示的图片:"channelPicUrl":"https://lechangecloud.oss-cn-hangzhou.aliyuncs.com/lechange/snappic/9F0EB79PAJ546FD_img/Alarm/51/06ea173ded834dc19a30c77eda5f76c1.jpg?Expires=1709099272&OSSAccessKeyId=LTAIP4igXeEjYBoG&Signature=6J3YtLqaFblHO0e9BbdTnhPeBNI%3D"
补充:
mac浏览器加载上述两个地址,会先后两张图片,第二张图片使用预览也无法打开,查看简介发现可能是图片缺少:尺寸、色彩空间、颜色描述文件这几个元素。
请教各位大神代码层面有啥解决的方案吗?
SDWebImage and Kingfisher have the same issue. 😂, SDWebImage/SDWebImage#3675
Both Safari and Chome cannot display this image on iPhone (06ea173ded834dc19a30c77eda5f76c1)
This triggers an error
CGImageSourceCreateImageAtIndex:4434: *** ERROR: CGImageSourceCreateImageAtIndex[0] - 'JPEG' - failed to create image [0]
inside Apple's framework. So I would suggest you can try to open a radar (using the Feedback.app) to report it to Apple and only they can fix it. :[
thanks