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
$res = [$zip['width'], $zip['height']];
}
} else if ($ext === 'html') {
- $htmlContent = file_get_contents($path);
+ $htmlContent = Text::normalizeLines(file_get_contents($path));
if (stristr($htmlContent, '<div id="lottie"></div>')) {
if (preg_match('/var animationData = (\{.*\})/', $htmlContent, $m)) {
$ad = json_decode(trim($m[1]), true);