File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
Pod ::Spec . new do |s |
10
10
s . name = 'SDWebImagePDFCoder'
11
- s . version = '1.0.0 '
11
+ s . version = '1.0.1 '
12
12
s . summary = 'A PDF coder plugin for SDWebImage, using built-in framework'
13
13
14
14
# This description is used to generate tags and improve search results.
Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ + (NSData *)createPDFDataWithBitmapImage:(UIImage *)image {
206
206
return nil ;
207
207
}
208
208
NSMutableData *pdfData = [NSMutableData data ];
209
+
209
210
CGDataConsumerRef pdfConsumer = CGDataConsumerCreateWithCFData ((__bridge CFMutableDataRef)pdfData);
210
211
211
212
CGSize imageSize = CGSizeMake (CGImageGetWidth (imageRef), CGImageGetHeight (imageRef));
@@ -216,7 +217,12 @@ + (NSData *)createPDFDataWithBitmapImage:(UIImage *)image {
216
217
CGContextDrawImage (context, mediaBox, imageRef);
217
218
CGContextEndPage (context);
218
219
219
- return [pdfData copy ];
220
+ NSData *result = [pdfData copy ];
221
+
222
+ CGDataConsumerRelease (pdfConsumer);
223
+ CGContextRelease (context);
224
+
225
+ return result;
220
226
}
221
227
222
228
+ (BOOL )supportsVectorPDFImage {
Original file line number Diff line number Diff line change 15
15
<key >CFBundlePackageType </key >
16
16
<string >FMWK </string >
17
17
<key >CFBundleShortVersionString </key >
18
- <string >1.0.0 </string >
18
+ <string >1.0.1 </string >
19
19
<key >CFBundleVersion </key >
20
- <string >1.0.0 </string >
20
+ <string >1.0.1 </string >
21
21
</dict >
22
22
</plist >
You can’t perform that action at this time.
0 commit comments