From 4f46dee1d39ff7e4edf32f6a2d10f538f72ea61f Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 5 Jan 2024 15:08:15 +0100 Subject: [PATCH] wait #6611 @0:20 --- src/Graphics/Image.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Graphics/Image.php b/src/Graphics/Image.php index 282fcb7..4d787dd 100644 --- a/src/Graphics/Image.php +++ b/src/Graphics/Image.php @@ -6,6 +6,7 @@ use Cubist\PDF\PDFTools; use Cubist\Util\Animations\OAMAnimation; use Cubist\Util\Animations\ZipAnimation; use Cubist\Util\Files\Files; +use Cubist\Util\Text; use Illuminate\Support\Facades\Log; class Image @@ -89,7 +90,7 @@ class Image $res = [$zip['width'], $zip['height']]; } } else if ($ext === 'html') { - $htmlContent = file_get_contents($path); + $htmlContent = Text::normalizeLines(file_get_contents($path)); if (stristr($htmlContent, '
')) { if (preg_match('/var animationData = (\{.*\})/', $htmlContent, $m)) { $ad = json_decode(trim($m[1]), true); -- 2.39.5