How to use GD Library in modx..??
I use modx 0.9.6.3 and enable GD Library in my webserver (xampp).
I create snippet for show image from generate text use function ImageTTFText but not work?
<?php
header ("Content-type: image/png");
$image = imagecreate (150, 20);
$background = ImageColorAllocate ($image, 00, 00, 00);
$white = ImageColorAllocate ($image, 255, 255, 255);
ImageTTFText ($image, 8, 0, 0, 15, $white, "arial.ttf", "Straight");
ImagePNG($image);
?>
Result snippet :
�PNG ��� IHDR�����������W����PLTE������???���������___%��Z����IDATx�c`�� 0�00C�@���� � �.�)@�Ye��a���!���"��dht��B"����cC*��b`kv`jowd``d`$�,v��@w Ph��P;cB#ď���f��l �\��{�Y�䚅ژ�NZ@�X�jf S���mez�������IEND�B`�
::) i think i wrong send message for this forum , but can someone help me...
Regards,
Syu11