GD kütüphanesi yerine Imagick kütüphanesini kullanabilirsiniz.Imagick kütüphanesi sunucuyu daha az yormaktadır.
Örnek kod aşağıdadır.
$text = 'Önizleme';
$draw = new ImagickDraw();
// Set font properties
$draw->setFont("Verdana");
$draw->setFontSize(84);
$draw->setFillColor("black");
// Position text at the bottom-right of the image
$draw->setGravity(Imagick::GRAVITY_CENTER);
$im = new Imagick();
$im->setResolution(140, 140);
$im->readImage($sourceFileName);
// Draw text on the image
$im->annotateImage($draw, 10, 12, 305, $text);
echo $im;
header("Content-Type: image/jpg");
Kolay gelsin.