From: Vincent Vanwaelscappel Date: Fri, 5 Jan 2024 14:08:15 +0000 (+0100) Subject: wait #6611 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4f46dee1d39ff7e4edf32f6a2d10f538f72ea61f;p=cubist_util.git wait #6611 @0:20 --- 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);