Skip to content

Commit 8ab4c5c

Browse files
committedJan 28, 2019
Update the README. Bumped version to 0.1.2
1 parent ead68a0 commit 8ab4c5c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ NSURL *webpURL;
5151

5252
// WebP image encoding
5353
UIImage *image;
54-
NSData *webpData = [UIImage sd_imageDataAsFormat:SDImageFormatWebP];
54+
NSData *webpData = [[SDImageWebPCoder sharedCoder] encodedDataWithImage:image format:SDImageFormatWebP options:nil];
5555
```
5656
5757
+ Swift
@@ -68,7 +68,7 @@ imageView.sd_setImage(with: webpURL)
6868
6969
// WebP image encoding
7070
let image: UIImage
71-
let webpData = image.sd_imageData(asFormat: .WebP)
71+
let webpData = SDImageWebPCoder.shared.encodedData(with: image, format: .webP, options: nil)
7272
```
7373

7474
## Example

‎SDWebImageWebPCoder.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'SDWebImageWebPCoder'
3-
s.version = '0.1.1'
3+
s.version = '0.1.2'
44
s.summary = 'WebP decoder/encoder for SDWebImage coder plugin.'
55

66
s.description = <<-DESC

‎SDWebImageWebPCoder/Module/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.1.1</string>
18+
<string>0.1.2</string>
1919
<key>CFBundleVersion</key>
20-
<string>0.1.1</string>
20+
<string>0.1.2</string>
2121
<key>NSPrincipalClass</key>
2222
<string></string>
2323
</dict>

0 commit comments

Comments
 (0)
Please sign in to comment.