📈 GH Trending Explorer 🎲 Surprise me

← all repos

SDWebImage / SDWebImageWebPCoder

git clone https://github.com/SDWebImage/SDWebImageWebPCoder.git 0.15.0 · 11mo ago 🔥 on GitHub Trending today

A WebP coder plugin for SDWebImage, use libwebp

+0
stars, 24h · #588
+0
stars, 7 days · #1,655
+1
stars, 30 days · #10,072
278
★ total
101
forks · 9 open issues

Star history starts 2026-10-20; the chart appears after the second daily snapshot.

LanguageObjective-C
LicenseMIT
Created2018-08-28 (8y ago)
Last push3mo ago
Watchers6
OwnerOrganization

Seen on GitHub Trending

  • 2026-10-20 — #12 daily in objective-c
  • 2026-10-20 — #18 monthly in objective-c · +1 ★
  • 2026-10-20 — #13 weekly in objective-c

GitHub topics

Links

README excerpt
# SDWebImageWebPCoder
Starting with the SDWebImage 5.0 version, we moved the WebP support code and libwebp from the Core Repo to this stand-alone repo.
SDWebImageWebPCoder supports both WebP decoding and encoding, for Static WebP or Animated WebP as well.
Note: Apple's ImageIO supports WebP decoding from iOS 14/tvOS 14/watchOS 7/macOS 11, so SDWebImage on those platform can also decode WebP images (using `SDWebImageAWebPCoder` built-in coder). However it may contains some limitation, check https://github.com/SDWebImage/SDWebImage/issues/3558, you can still force to use this coder on those platforms by adding this coder.
## Requirements
+ iOS 9.0
+ macOS 10.11
+ tvOS 9.0
+ watchOS 2.0
+ Xcode 11.0
## Installation
#### CocoaPods
SDWebImageWebPCoder is available through CocoaPods. To install it, simply add the following line to your Podfile:
 [code] 
#### Carthage
SDWebImageWebPCoder is available through Carthage.
 [code] 
#### Swift Package Manager (Xcode 11+)
SDWebImageWebPCoder is available through Swift Package Manager.
 [code] 
## Usage
### Add Coder
Before using SDWebImage to load WebP images, you need to register the WebP Coder to your coders manager. This step is recommended to be done after your App launch (like AppDelegate method).
+ Objective-C
 [code] 
+ Swift
 [code] 
### Modify HTTP Accept Header
Some of image server provider may try to detect the client supported format, by default, SDWebImage use `image/*,*/*;q=0.8` for Accept. You can modify it with the `image/webp` as well.
+ Objective-C
 [code] 
+ Swift
 [code] 
### Loading
+ Objective-C
 [code] 
+ Swift
 [code] 
### Progressive Animation Loading (0.5.0+)
+ Objective-C
 [code] 
+ Swift
 [code] 
### Decoding
+ Objective-C
 [code] 
+ Swift
 [code] 
### Thumbnail Decoding (0.4.0+)
+ Objective-C
 [code] 
+ Swift
 [code] 
### Decoding with limit bytes (0.12.0+)
+ Objective-C
 [code] 
+ Swift
 [code] 
### Encoding
+ Objective-c
 [code] 
+ Swift
 [code] 
## Example
To run the example project, clone the repo, and run `pod install` from the root directory first. Then open `SDWebImageWebPCoder.xcworkspace`.
This is a demo to show how to use `WebP` and animated `WebP` images via `SDWebImageWebPCoderExample` target.
## Screenshot
These WebP images are from WebP Gallery and GIF vs APNG vs WebP
## Author
Bogdan Poplauschi
DreamPiggy
## License
SDWebImageWebPCoder is available under the MIT license. See the LICENSE file for more info.