diff --git a/SDWebImage/Core/UIImage+MultiFormat.m b/SDWebImage/Core/UIImage+MultiFormat.m index fc87f887..a569477c 100644 --- a/SDWebImage/Core/UIImage+MultiFormat.m +++ b/SDWebImage/Core/UIImage+MultiFormat.m @@ -9,6 +9,7 @@ #import "UIImage+MultiFormat.h" #import "SDImageCodersManager.h" #import "SDAnimatedImageRep.h" +#import "UIImage+Metadata.h" @implementation UIImage (MultiFormat) @@ -41,7 +42,7 @@ } } #endif - return [self sd_imageDataAsFormat:SDImageFormatUndefined]; + return [self sd_imageDataAsFormat:self.sd_imageFormat]; } - (nullable NSData *)sd_imageDataAsFormat:(SDImageFormat)imageFormat {