git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
thumb: flatten transparent images to white background
[minimedit.git]
/
thumb
/
index.php
diff --git
a/thumb/index.php
b/thumb/index.php
index 27a194ee51584f5840c42eff880207e02e6a42da..f15a180b1e8e89983eea66d5430f7ee7fc19e159 100644
(file)
--- a/
thumb/index.php
+++ b/
thumb/index.php
@@
-89,6
+89,7
@@
function mkthumb_exec($source, $target, $width, $height)
$cmd = implode(' ', array_map('escapeshellarg', [
'convert',
'-trim',
+ '-background', 'white', '-layers', 'flatten',
'-resize', "${width}x${height}",
'-quality', '90%',
$source, "jpg:$target"