From: Mischa POSLAWSKY Date: Sat, 30 Nov 2019 21:13:07 +0000 (+0100) Subject: thumb: delete subsequent animation frames X-Git-Tag: v4.3~6 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/2c4ab348002aa511155c5aaeb6cad19b5d6eca6e thumb: delete subsequent animation frames Convert animated GIFs and accidental video to still frame. --- diff --git a/thumb/index.php b/thumb/index.php index 4549b44..fbea220 100644 --- a/thumb/index.php +++ b/thumb/index.php @@ -87,6 +87,7 @@ function mkthumb_exec($source, $target, $width, $height) } $cmd = implode(' ', array_map('escapeshellarg', [ 'convert', + '-delete', '1--1', '-trim', '-background', 'white', '-layers', 'flatten', '-resize', "${width}x${height}",