X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/b3aec6cf1cd18493d44cf68d88c8f55b6a417f9c..ed38c6a76767a893a319f7bfd9229b0dad6b08db:/thumb/index.php 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}",