git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
170f16e
)
thumb: delete subsequent animation frames
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 30 Nov 2019 21:13:07 +0000
(22:13 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 1 Jan 2020 10:10:37 +0000
(11:10 +0100)
Convert animated GIFs and accidental video to still frame.
thumb/index.php
patch
|
blob
|
history
diff --git
a/thumb/index.php
b/thumb/index.php
index 4549b44e6ab67385c52d6168da8b8b529ea16fe4..fbea220b2bf7d48f5b0ae556862063c30271a816 100644
(file)
--- 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',
}
$cmd = implode(' ', array_map('escapeshellarg', [
'convert',
+ '-delete', '1--1',
'-trim',
'-background', 'white', '-layers', 'flatten',
'-resize', "${width}x${height}",
'-trim',
'-background', 'white', '-layers', 'flatten',
'-resize', "${width}x${height}",