From 8ab4c5cd145d5dca35f97218a810f8eb6b49590f Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Mon, 28 Jan 2019 17:29:41 +0800 Subject: [PATCH] Update the README. Bumped version to 0.1.2 --- README.md | 4 ++-- SDWebImageWebPCoder.podspec | 2 +- SDWebImageWebPCoder/Module/Info.plist | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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