diff --git a/SDWebImage/Core/SDAnimatedImage.m b/SDWebImage/Core/SDAnimatedImage.m index 56c63e1c..14384e72 100644 --- a/SDWebImage/Core/SDAnimatedImage.m +++ b/SDWebImage/Core/SDAnimatedImage.m @@ -182,6 +182,8 @@ static CGFloat SDImageScaleFromPath(NSString *string) { #else self = [super initWithCGImage:image.CGImage scale:MAX(scale, 1) orientation:image.imageOrientation]; #endif + // Defines the associated object that holds the format for static images + super.sd_imageFormat = format; return self; } } @@ -374,10 +376,6 @@ static CGFloat SDImageScaleFromPath(NSString *string) { } } -- (void)setSd_imageFormat:(SDImageFormat)sd_imageFormat { - return; -} - - (BOOL)sd_isVector { return NO; }