Merge pull request #57657 from nextcloud/backport/57653/stable32

[stable32] fix(theming): Fix favicon and touchicon ratios
This commit is contained in:
Côme Chilliet 2026-01-20 15:27:33 +01:00 committed by GitHub
commit 753af543ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);