From eaa5c409c0068f0b196bcbdd5e75a0c10c91645f Mon Sep 17 00:00:00 2001 From: Rien van Velzen Date: Sun, 3 Oct 2021 19:57:56 +0200 Subject: [PATCH] Force Imagick to interpret the blob as an SVG --- src/card.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/card.php b/src/card.php index f5dd7149..c4665a6d 100644 --- a/src/card.php +++ b/src/card.php @@ -317,7 +317,7 @@ function echoAsPng(string $svg): void { // trim off all whitespaces to make it a valid SVG string $svg = trim($svg); - + // remove style and animations $svg = preg_replace('/(