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

AnimatedImageView 图片方向错误与heic格式文件卡顿 #2198

Open
trembleCat opened this issue Jan 17, 2024 · 0 comments
Open

AnimatedImageView 图片方向错误与heic格式文件卡顿 #2198

trembleCat opened this issue Jan 17, 2024 · 0 comments

Comments

@trembleCat
Copy link

复现图片方向错误
1.图片存放在沙盒,使用AnimatedImageView(UIImageView不会出现方向错误的问题)
2.tableview或collectionview加载gif和jpeg等图片,当列表中有gif图并已显示时,有较大几率出现其他 jpeg 等普通格式图片方向错误
3.删除 gif 图后刷新列表,图片方向恢复正常

复现heic格式文件卡顿

  1. 将 live 图拷贝到沙盒
  2. 直接加载heic文件,
  3. 首次加载会轻微卡顿,在列表页息屏一段时间再重新打开,滚动列表时会出现更为严重的卡顿(不能100%复现)

测试设备
xcode 15.2 15.1
iphone se1 14.4 真机
iphone 13 pro 17.2.1 真机

kingfisher 7.8.1
kingfisher 7.10.2

代码

private lazy var animateImageView = AnimatedImageView()

animateImageView.contentMode = .scaleAspectFill
        animateImageView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }

animateImageView.kf.setImage(with: url)
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

1 participant