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

部分jpg图片链接无法显示的问题,kf.setImage(with: URL(string: url), placeholder: placeholder) #2213

Open
sunjianios opened this issue Feb 22, 2024 · 5 comments

Comments

@sunjianios
Copy link

xcode 15.2
Kingfisher (7.9.1)

可以显示的图片:https://lechangecloud.oss-cn-hangzhou.aliyuncs.com/lechange/snappic/9F0EB79PAJ546FD_img/Alarm/44/6394760186c44509b19e25f4a729f691.jpg?Expires=1709099268&OSSAccessKeyId=LTAIP4igXeEjYBoG&Signature=h1A789p%2Bu%2FX%2BuMYjnbgAwKpylSA%3D"

无法显示的图片:"channelPicUrl":"https://lechangecloud.oss-cn-hangzhou.aliyuncs.com/lechange/snappic/9F0EB79PAJ546FD_img/Alarm/51/06ea173ded834dc19a30c77eda5f76c1.jpg?Expires=1709099272&OSSAccessKeyId=LTAIP4igXeEjYBoG&Signature=6J3YtLqaFblHO0e9BbdTnhPeBNI%3D"

补充:
mac浏览器加载上述两个地址,会先后两张图片,第二张图片使用预览也无法打开,查看简介发现可能是图片缺少:尺寸、色彩空间、颜色描述文件这几个元素。

图片

请教各位大神代码层面有啥解决的方案吗?

@sunjianios sunjianios changed the title 部分jpg图片链接无法显示的问题 部分jpg图片链接无法显示的问题,kf.setImage(with: URL(string: url), placeholder: placeholder) Feb 22, 2024
@sunjianios
Copy link
Author

SDWebImage and Kingfisher have the same issue. 😂, SDWebImage/SDWebImage#3675

@sunjianios
Copy link
Author

归档.zip

@sunjianios
Copy link
Author

Both Safari and Chome cannot display this image on iPhone (06ea173ded834dc19a30c77eda5f76c1)

@onevcat
Copy link
Owner

onevcat commented Feb 23, 2024

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. :[

@sunjianios
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants