소스 검색

修复:imagettftext方法报错 b1199a4

萤火科技 4 년 전
부모
커밋
a8f3b0b2f6
1개의 변경된 파일과 3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      vendor/kosinix/grafika/src/Grafika/Gd/Editor.php

+ 3 - 3
vendor/kosinix/grafika/src/Grafika/Gd/Editor.php

@@ -798,9 +798,9 @@ final class Editor implements EditorInterface
             $image->getCore(),
             $size,
             $angle,
-            $x,
-            $y,
-            $colorResource,
+            (int)$x,
+            (int)$y,
+            (int)$colorResource,
             $font,
             $text
         );