File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
SDWebImageWebPCoder/Classes Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -464,13 +464,7 @@ - (NSData *)encodedDataWithImage:(UIImage *)image format:(SDImageFormat)format o
464
464
BOOL encodeFirstFrame = [options[SDImageCoderEncodeFirstFrameOnly] boolValue ];
465
465
if (encodeFirstFrame || frames.count == 0 ) {
466
466
// for static single webp image
467
- CGImageRef imageRef = image.CGImage ;
468
- #if SD_UIKIT || SD_WATCH
469
- if (!imageRef) {
470
- imageRef = image.images .firstObject .CGImage ;
471
- }
472
- #endif
473
- data = [self sd_encodedWebpDataWithImage: imageRef quality: compressionQuality];
467
+ data = [self sd_encodedWebpDataWithImage: image.CGImage quality: compressionQuality];
474
468
} else {
475
469
// for animated webp image
476
470
WebPMux *mux = WebPMuxNew ();
You can’t perform that action at this time.
0 commit comments