A WebP coder plugin for SDWebImage, use libwebp
Go to file
Bogdan Poplauschi 091a6fd658 Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
Example Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
SDImageWebPCoder Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
.gitignore Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
.travis.yml Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
Cartfile Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
Cartfile.resolved Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
LICENSE Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
README.md Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
SDImageWebPCoder.podspec Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00

README.md

SDImageWebPCoder

CI Status Version License Platform Carthage compatible

Starting with the SDWebImage 5.0 version, we moved the libwebp support code from the Core Repo to this stand-alone repo.

Requirements

  • iOS 8
  • macOS 10.10
  • tvOS 9.0
  • watchOS 2.0

Installation

CocoaPods

SDImageWebPCoder is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SDImageWebPCoder'

Carthage

SDImageWebPCoder is available through Carthage.

github "SDWebImage/SDImageWebPCoder"

Usage

SDImageWebPCoder *webPCoder = [SDImageWebPCoder sharedCoder];
[[SDWebImageCodersManager sharedInstance] addCoder:webPCoder];

UIImageView *imageView;
NSURL *WebPURL = ...;
[imageView sd_setImageWithURL:WebPURL];

Example

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.

Author

Bogdan Poplauschi

License

SDImageWebPCoder is available under the MIT license. See the LICENSE file for more info.