Converting a UIImage to the WebP format is extremely slow
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
- objective-c
- Domain
- mobile-dev, performance
Research direction
Start at the encodedData(with:format:options:) call shown in the issue and profile UIImage-to-WebP encoding with the stated 2.5 MB image and 0.85 quality. Compare the observed 13.5-second runtime with the libwebp-backed coder behavior. Done means identifying the encoding bottleneck and documenting or implementing a fix that materially improves this case.
Written by the indexing model from the issue text.
Description
Converting a UIImage to the WebP format is extremely slow. For a 2.5-megabyte photo with a compression ratio of 0.85, it takes approximately 13.5 seconds
let webpCoder = SDImageWebPCoder.shared
var options: [SDImageCoderOption: Any] = [:]
options[SDImageCoderOption.encodeCompressionQuality] = 0.85
if let webpData = webpCoder.encodedData(with: image, format: .webP, options: options) {
compressionImageData = webpData
}
- 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 30/100
SDWebImage/SDWebImageWebPCoder#113 · 3 comments ·
-
Frames loading Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
SDWebImage/SDWebImageWebPCoder#105 · 15 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
SDWebImage/SDWebImageWebPCoder#78 · 2 comments ·
All issues in SDWebImage/SDWebImageWebPCoder
Similar issues
-
clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openclaw/openclaw-facetime#40 · 2 comments · 1 reaction ·
-
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 65/100
SwiftOldDriver/iOS-Weekly#5439 · 1 comment ·