resources/images: Fix 2 animated GIF resize issues

* Fix resize of animated GIF when target != GIF
* Avoid processing all GIF frames if targetFormat != GIF

Fixes #10354
This commit is contained in:
Bjørn Erik Pedersen
2022-10-04 11:00:07 +02:00
parent 0addb302ac
commit 3a9cb7b0fb
8 changed files with 28 additions and 16 deletions

View File

@@ -60,6 +60,7 @@ var (
imageFormatsVersions = map[Format]int{
PNG: 3, // Fix transparency issue with 32 bit images.
WEBP: 2, // Fix transparency issue with 32 bit images.
GIF: 1, // Fix resize issue with animated GIFs when target != GIF.
}
// Increment to mark all processed images as stale. Only use when absolutely needed.