You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (iter.dispose_method == WEBP_MUX_DISPOSE_BACKGROUND) {
475
491
CGContextClearRect(canvas, imageRect);
476
492
}
477
493
478
-
// Check whether we need to use thumbnail
479
-
if (!CGSizeEqualToSize(CGSizeMake(canvasWidth, canvasHeight), scaledSize)) {
480
-
// Important: For Animated WebP thumbnail generation, we can not just use a scaled small canvas and draw each thumbnail frame
481
-
// This works **On Theory**. However, image scale down loss details. Animated WebP use the partial pixels with blend mode / dispose method with offset, to cover previous canvas status
482
-
// Because of this reason, even each frame contains small zigzag, the final animation contains visible glitch, this is not we want.
483
-
// So, always create the full pixels canvas (even though this consume more RAM), after drawn on the canvas, re-scale again with the final size
0 commit comments