From 8a0bd420536cef39dc1e1d15b5902f333425e2ba Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sat, 18 Jan 2020 19:45:08 +0800 Subject: [PATCH] For progressive animated image poster, the sd_imageFormat should be set --- SDWebImageWebPCoder/Classes/SDImageWebPCoder.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m b/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m index edb1bdd..acc5634 100644 --- a/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m +++ b/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m @@ -353,7 +353,11 @@ static CGSize SDCalculateThumbnailSize(CGSize fullSize, BOOL preserveAspectRatio SD_LOCK(_lock); image = [self safeStaticImageFrame]; SD_UNLOCK(_lock); + image.sd_imageFormat = SDImageFormatWebP; + image.sd_isDecoded = YES; + return image; } + // For Static WebP images int width = 0; int height = 0;