Update the README. Bumped version to 0.1.2

This commit is contained in:
DreamPiggy 2019-01-28 17:29:41 +08:00
parent ead68a0e31
commit 8ab4c5cd14
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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>