Frames loading
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- ios, objective-c, swift
- Domain
- mobile, performance
Research direction
Start by reproducing the animated WebP collection-view case with SDAnimatedImageView, SDWebImageManager, and SDImageCodersManager on an older iOS device or equivalent environment. Compare first appearance with later animation after the local images have been processed or cached. Done means the approximately 50 local animated WebP cells begin loading and animating correctly without the reported initial freeze.
Written by the indexing model from the issue text.
Description
Hello, I'm trying to use animated webp images as cells for collection view and it works nice on new devices, but on devices like iPhone 7 I have such an issue: on first appearing of cell the loading of images is freezed, and scrolling is not (I can scroll the collection without freezes, so it is not main thread lock). There are approximately 50 cells of images, and they loads by frame. After some time (I guess when all frames of images are passed) all cells begin to animate correctly (after closing and reopening the screen too). Looks like it is something connected with caching. All webp-s are local files, so it is not network loading. Am doing something wrong? Here is the code:
SDWebImageManager.shared.optionsProcessor = SDWebImageOptionsProcessor { _, options, context in
var mutableOptions = options
mutableOptions.insert([.retryFailed, .highPriority/*, .preloadAllFrames*/]) // no efffect on frames loading
return SDWebImageOptionsResult(options: mutableOptions, context: context)
}
SDImageCodersManager.shared.addCoder(SDImageWebPCoder.shared)
SDWebImageDownloader.shared.setValue("image/webp,image/*,*/*;q=0.8", forHTTPHeaderField: "Accept")
...
var stickerImageView = SDAnimatedImageView(frame: .zero)
// stickerImageView.shouldIncrementalLoad = true // no efffect on frames loading
stickerImageView.sd_imageTransition = .fade(duration: 0.3)
...
stickerImageView.sd_setImage(with: url, placeholderImage: placeholder)
- Dominant language
- Objective-C
- Stars
- 277
- Forks
- 101
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SDWebImage/SDWebImageWebPCoder
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
SDWebImage/SDWebImageWebPCoder#117 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
SDWebImage/SDWebImageWebPCoder#116 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
SDWebImage/SDWebImageWebPCoder#115 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
SDWebImage/SDWebImageWebPCoder#113 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
SDWebImage/SDWebImageWebPCoder#78 · 2 comments ·
All issues in SDWebImage/SDWebImageWebPCoder
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
noah-nuebling/mac-mouse-fix#2054 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
obsproject/obs-studio#13918 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HigherOrderCO/Bend#842 · 2 comments ·