For progressive animated image poster, the sd_imageFormat should be set

This commit is contained in:
DreamPiggy 2020-01-18 19:45:08 +08:00
parent 3f847ba6dc
commit 8a0bd42053
1 changed files with 4 additions and 0 deletions

View File

@ -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;