diff --git a/README.md b/README.md
index 15f2dcb..b06c8a0 100644
--- a/README.md
+++ b/README.md
@@ -51,7 +51,7 @@ NSURL *webpURL;
// WebP image encoding
UIImage *image;
-NSData *webpData = [UIImage sd_imageDataAsFormat:SDImageFormatWebP];
+NSData *webpData = [[SDImageWebPCoder sharedCoder] encodedDataWithImage:image format:SDImageFormatWebP options:nil];
```
+ Swift
@@ -68,7 +68,7 @@ imageView.sd_setImage(with: webpURL)
// WebP image encoding
let image: UIImage
-let webpData = image.sd_imageData(asFormat: .WebP)
+let webpData = SDImageWebPCoder.shared.encodedData(with: image, format: .webP, options: nil)
```
## Example
diff --git a/SDWebImageWebPCoder.podspec b/SDWebImageWebPCoder.podspec
index 58148dd..c354a74 100644
--- a/SDWebImageWebPCoder.podspec
+++ b/SDWebImageWebPCoder.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SDWebImageWebPCoder'
- s.version = '0.1.1'
+ s.version = '0.1.2'
s.summary = 'WebP decoder/encoder for SDWebImage coder plugin.'
s.description = <<-DESC
diff --git a/SDWebImageWebPCoder/Module/Info.plist b/SDWebImageWebPCoder/Module/Info.plist
index 9fe9fb3..075c1a4 100644
--- a/SDWebImageWebPCoder/Module/Info.plist
+++ b/SDWebImageWebPCoder/Module/Info.plist
@@ -15,9 +15,9 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 0.1.1
+ 0.1.2
CFBundleVersion
- 0.1.1
+ 0.1.2
NSPrincipalClass