Hi there,
I have installed php with gd-support..
but when using the function ImagePNG, it gives no output.
but php supports ImagePNG:
this function says that PNG support is enabled.
if (ImageTypes() & IMG_PNG) {
echo "PNG Support is enabled";
}
I'm using this piece of code to test:
<?php
header ("Content-type: image/png");
$im = @ImageCreate (50, 100) or die ("Cannot Initialize new GD image stream");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color);
ImagePng ($im);
?>
It gives no errors or something, but there's just no image..
Anybody kwow how to solve this problem?
thanks,
Thomas