A WebP coder plugin for SDWebImage, use libwebp
Go to file
DreamPiggy da76f7f30c Fix the issue of wrong workspace group 2019-01-11 18:32:18 +08:00
Example Remove the extra SD_WEBP macro define. Since now we move to a dedicated repo 2018-09-17 20:43:32 +08:00
SDWebImageWebPCoder Remove the extra SD_WEBP macro define. Since now we move to a dedicated repo 2018-09-17 20:43:32 +08:00
SDWebImageWebPCoder.xcodeproj Remove the extra SD_WEBP macro define. Since now we move to a dedicated repo 2018-09-17 20:43:32 +08:00
SDWebImageWebPCoder.xcworkspace Fix the issue of wrong workspace group 2019-01-11 18:32:18 +08:00
SDWebImageWebPCoderTests Fixed Travis CI by removing the double linking from SDWebImageWebPCoderTests to SDWebImageWebPCoder (one via CocoaPods and the other one direct) 2018-09-08 21:39:39 +03:00
.gitignore Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
.travis.yml Fixed Travis CI by removing the double linking from SDWebImageWebPCoderTests to SDWebImageWebPCoder (one via CocoaPods and the other one direct) 2018-09-08 21:39:39 +03:00
Cartfile Renamed project to `SDWebImageWebPCoder` - it matches the format for the other repos and, as a workaround: 2018-08-29 14:50:53 +03:00
Cartfile.resolved Renamed project to `SDWebImageWebPCoder` - it matches the format for the other repos and, as a workaround: 2018-08-29 14:50:53 +03:00
LICENSE Initial checkin of the project - minimal code + docs + Travis CI script 2018-08-28 18:21:20 +03:00
README.md Renamed project to `SDWebImageWebPCoder` - it matches the format for the other repos and, as a workaround: 2018-08-29 14:50:53 +03:00
SDWebImageWebPCoder.podspec Renamed project to `SDWebImageWebPCoder` - it matches the format for the other repos and, as a workaround: 2018-08-29 14:50:53 +03:00

README.md

SDWebImageWebPCoder

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

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

pod 'SDWebImageWebPCoder'

Carthage

SDWebImageWebPCoder is available through Carthage.

github "SDWebImage/SDWebImageWebPCoder"

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

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