mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #57657 from nextcloud/backport/57653/stable32
[stable32] fix(theming): Fix favicon and touchicon ratios
This commit is contained in:
commit
753af543ac
1 changed files with 2 additions and 3 deletions
|
|
@ -136,9 +136,8 @@ class IconBuilder {
|
|||
|
||||
// convert svg to resized image
|
||||
$appIconFile = new Imagick();
|
||||
$resX = (int)(72 * $size / $x);
|
||||
$resY = (int)(72 * $size / $y);
|
||||
$appIconFile->setResolution($resX, $resY);
|
||||
$res = (int)(72 * $size / max($x, $y));
|
||||
$appIconFile->setResolution($res, $res);
|
||||
$appIconFile->setBackgroundColor(new ImagickPixel('transparent'));
|
||||
$appIconFile->readImageBlob($svg);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue