Bumped version to 0.10.0

This commit is contained in:
DreamPiggy 2023-01-17 17:36:39 +08:00
parent 5864b77d88
commit d72efcfcb4
3 changed files with 6 additions and 6 deletions

View File

@ -156,7 +156,7 @@ let image = SDImageWebPCoder.shared.decodedImage(with: data, options: nil)
// WebP thumbnail image decoding
NSData *webpData;
CGSize thumbnailSize = CGSizeMake(300, 300);
UIImage *thumbnailImage = [[SDImageWebPCoder sharedCoder] decodedImageWithData:webpData options:@{SDImageCoderDecodeThumbnailPixelSize : @(thumbnailSize}];
UIImage *thumbnailImage = [[SDImageWebPCoder sharedCoder] decodedImageWithData:webpData options:@{SDImageCoderDecodeThumbnailPixelSize : @(thumbnailSize)}];
```
+ Swift
@ -205,7 +205,7 @@ let limitedWebpData = SDImageWebPCoder.shared.encodedData(with: image, format: .
```objective-c
// WebP image thumbnail encoding
UIImage *image;
NSData *thumbnailWebpData = [[SDImageWebPCoder sharedCoder] encodedDataWithImage:image format:SDImageFormatWebP options:@{SDImageCoderEncodeMaxPixelSize : @(CGSizeMake(200, 200)}]; // v0.6.1 feature, encoding max pixel size
NSData *thumbnailWebpData = [[SDImageWebPCoder sharedCoder] encodedDataWithImage:image format:SDImageFormatWebP options:@{SDImageCoderEncodeMaxPixelSize : @(CGSizeMake(200, 200))}]; // v0.6.1 feature, encoding max pixel size
```
+ Swift
@ -237,7 +237,7 @@ NSData *awebpData = [[SDImageWebPCoder sharedCoder] encodedDataWithFrames:frames
```swift
// Animated encoding
var frames: [SDImageFrame] = []
for i in [0..<images.count] {
for i in 0..<images.count {
let frame = SDImageFrame(image: images[i], duration: 0.1)
frames.append(frame)
}

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SDWebImageWebPCoder'
s.version = '0.9.1'
s.version = '0.10.0'
s.summary = 'WebP decoder/encoder for SDWebImage coder plugin.'
s.description = <<-DESC

View File

@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.1</string>
<string>0.10.0</string>
<key>CFBundleVersion</key>
<string>0.9.1</string>
<string>0.10.0</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>