projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4575e02
)
fix 7801 - transparent png convert to jpeg did not flatten
author
Alan
<alan@roojs.com>
Thu, 7 Sep 2023 04:33:16 +0000
(12:33 +0800)
committer
Alan
<alan@roojs.com>
Thu, 7 Sep 2023 04:33:16 +0000
(12:33 +0800)
File/Convert/Solution/convert.php
patch
|
blob
|
history
diff --git
a/File/Convert/Solution/convert.php
b/File/Convert/Solution/convert.php
index
dbb942f
..
092a181
100644
(file)
--- a/
File/Convert/Solution/convert.php
+++ b/
File/Convert/Solution/convert.php
@@
-36,10
+36,11
@@
class File_Convert_Solution_convert extends File_Convert_Solution
if (file_exists($target) && filesize($target) && filemtime($target) > filemtime($fn)) {
return $target;
}
+
$flat = '';
$targetName = $target;
if ($this->to == 'image/jpeg' && $this->from != 'image/gif') {
- $flat = " -background '#ffffff' -
-
flatten ";
+ $flat = " -background '#ffffff' -flatten ";
}
$strip = '-strip';
if ($this->to == 'image/x-ms-bmp') {