Skip to content

Commit 8a0bd42

Browse files
committed
For progressive animated image poster, the sd_imageFormat should be set
1 parent 3f847ba commit 8a0bd42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SDWebImageWebPCoder/Classes/SDImageWebPCoder.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,11 @@ - (UIImage *)incrementalDecodedImageWithOptions:(SDImageCoderOptions *)options {
353353
SD_LOCK(_lock);
354354
image = [self safeStaticImageFrame];
355355
SD_UNLOCK(_lock);
356+
image.sd_imageFormat = SDImageFormatWebP;
357+
image.sd_isDecoded = YES;
358+
return image;
356359
}
360+
357361
// For Static WebP images
358362
int width = 0;
359363
int height = 0;

0 commit comments

Comments
 (0)