Update the README. Bumped version to 0.1.2
This commit is contained in:
parent
ead68a0e31
commit
8ab4c5cd14
|
@ -51,7 +51,7 @@ NSURL *webpURL;
|
||||||
|
|
||||||
// WebP image encoding
|
// WebP image encoding
|
||||||
UIImage *image;
|
UIImage *image;
|
||||||
NSData *webpData = [UIImage sd_imageDataAsFormat:SDImageFormatWebP];
|
NSData *webpData = [[SDImageWebPCoder sharedCoder] encodedDataWithImage:image format:SDImageFormatWebP options:nil];
|
||||||
```
|
```
|
||||||
|
|
||||||
+ Swift
|
+ Swift
|
||||||
|
@ -68,7 +68,7 @@ imageView.sd_setImage(with: webpURL)
|
||||||
|
|
||||||
// WebP image encoding
|
// WebP image encoding
|
||||||
let image: UIImage
|
let image: UIImage
|
||||||
let webpData = image.sd_imageData(asFormat: .WebP)
|
let webpData = SDImageWebPCoder.shared.encodedData(with: image, format: .webP, options: nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'SDWebImageWebPCoder'
|
s.name = 'SDWebImageWebPCoder'
|
||||||
s.version = '0.1.1'
|
s.version = '0.1.2'
|
||||||
s.summary = 'WebP decoder/encoder for SDWebImage coder plugin.'
|
s.summary = 'WebP decoder/encoder for SDWebImage coder plugin.'
|
||||||
|
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>FMWK</string>
|
<string>FMWK</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>0.1.1</string>
|
<string>0.1.2</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>0.1.1</string>
|
<string>0.1.2</string>
|
||||||
<key>NSPrincipalClass</key>
|
<key>NSPrincipalClass</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
Loading…
Reference in New Issue