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