diff options
author | Julius Härtl <jus@bitgrid.net> | 2017-09-12 11:32:53 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2017-09-12 11:34:21 +0200 |
commit | 1f8a3e05c166d6ab1c216630787795df74817a15 (patch) | |
tree | 2ac9fd6fb5eca5cdf69574c54bafaeec7f026a49 /apps/theming | |
parent | ff27308b88015126c1a8c892779d53a79e764d57 (diff) | |
download | nextcloud-server-1f8a3e05c166d6ab1c216630787795df74817a15.tar.gz nextcloud-server-1f8a3e05c166d6ab1c216630787795df74817a15.zip |
Theming: Use png32 for generated icons
fixes #4796
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming')
-rw-r--r-- | apps/theming/lib/IconBuilder.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/theming/lib/IconBuilder.php b/apps/theming/lib/IconBuilder.php index 4383ccc7cd9..5d1c58e93f2 100644 --- a/apps/theming/lib/IconBuilder.php +++ b/apps/theming/lib/IconBuilder.php @@ -58,7 +58,7 @@ class IconBuilder { if ($icon === false) { return false; } - $icon->setImageFormat("png24"); + $icon->setImageFormat("png32"); $data = $icon->getImageBlob(); $icon->destroy(); return $data; @@ -77,7 +77,7 @@ class IconBuilder { if ($icon === false) { return false; } - $icon->setImageFormat("png24"); + $icon->setImageFormat("png32"); $data = $icon->getImageBlob(); $icon->destroy(); return $data; @@ -162,8 +162,6 @@ class IconBuilder { $offset_w = 512 / 2 - $innerWidth / 2; $offset_h = 512 / 2 - $innerHeight / 2; - $appIconFile->setImageFormat("png24"); - $finalIconFile = new Imagick(); $finalIconFile->setBackgroundColor(new ImagickPixel('transparent')); $finalIconFile->readImageBlob($background); |