diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-10-04 11:00:07 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-10-04 15:38:12 +0200 |
commit | 3a9cb7b0fb1da71f1c051340bf746f29ab39cd7f (patch) | |
tree | 784b33a60614995d61a217e5cac50901e1b4095b /resources/images/config.go | |
parent | 0addb302ac87531a107b07991616b21c8b8e6a48 (diff) | |
download | hugo-3a9cb7b0fb1da71f1c051340bf746f29ab39cd7f.tar.gz hugo-3a9cb7b0fb1da71f1c051340bf746f29ab39cd7f.zip |
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
Diffstat (limited to 'resources/images/config.go')
-rw-r--r-- | resources/images/config.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/resources/images/config.go b/resources/images/config.go index 62b5c72d8..6f562ff8e 100644 --- a/resources/images/config.go +++ b/resources/images/config.go @@ -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. |