Starting with the SDWebImage 5.0 version, we moved the libwebp support code from the Core Repo to this stand-alone repo.
- iOS 8
- macOS 10.10
- tvOS 9.0
- watchOS 2.0
SDWebImageWebPCoder is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SDWebImageWebPCoder'
SDWebImageWebPCoder is available through Carthage.
github "SDWebImage/SDWebImageWebPCoder"
SDImageWebPCoder *webPCoder = [SDImageWebPCoder sharedCoder]; [[SDWebImageCodersManager sharedInstance] addCoder:webPCoder]; UIImageView *imageView; NSURL *WebPURL = ...; [imageView sd_setImageWithURL:WebPURL];
To run the example project, clone the repo, and run pod install
from the Example directory first.
This is a demo to show how to use WebP
and animated WebP
images via SDWebImage
.
SDWebImageWebPCoder is available under the MIT license. See the LICENSE file for more info.