"크기"변수를 추가하려고하지만 크기가 정확히 "색상", "문자열"과 같은 변수를 추가해야하는 곳에서 imagemagick 코드를 확인하십시오. ..ImageMagick 코드를 편집 할 필요가 없습니다. 확인해주세요.
$animation = new Imagick();
$animation->setFormat("gif");
$color = new ImagickPixel("blue");
$color->setColor("red");
$string = "kothi!";
$draw = new ImagickDraw();
$draw->setFont("arial.ttf");
for ($i =0; $i <= 0; $i++)
{
$part = substr($string,100, $i);
$animation->newImage(100, 50, $color);
$animation->annotateImage($draw, 100, 100, 100, $part);
$animation->setImageDelay(30);
}
$draw->setFont("arial.ttf");
$animation->newImage(100, 50, $color);
$animation->annotateImage($draw, 10, 10, 0, $string);
$animation->setImageDelay(120);
header("Content-Type: image/gif");
echo $animation->getImagesBlob();
"지옥 웹 마스터"? O.o 오, 나는 이것이 [tag : javascript], 또는 [tag : html]과 아무런 관련이 없다고 생각합니다. * 순수하게 [tag : php]와 [tag : imagemagick]처럼 보입니다. –