diff --git a/apps/theming/lib/IconBuilder.php b/apps/theming/lib/IconBuilder.php
index 570b341104..9a4718bb65 100644
--- a/apps/theming/lib/IconBuilder.php
+++ b/apps/theming/lib/IconBuilder.php
@@ -103,7 +103,7 @@ class IconBuilder {
// generate background image with rounded corners
$background = '' .
'';
// resize svg magic as this seems broken in Imagemagick
if($mime === "image/svg+xml" || substr($appIconContent, 0, 4) === "