ID: 24869 Updated by: [EMAIL PROTECTED] Reported By: spam at jerome-gamez dot de -Status: Open +Status: Bogus -Bug Type: *Graphics related +Bug Type: GD related Operating System: Debian Linux 3 PHP Version: 4CVS-2003-07-30 (stable) New Comment:
If you removed the //'s in front of the 'header()' and ' Previous Comments: ------------------------------------------------------------------------ [2003-07-30 06:44:40] spam at jerome-gamez dot de Description: ------------ This script below does not lead to an image with some text on it, but to a set of chars, as you can see on http://drupal.smallbrainer.de/font.php We are using PHP 4.3.2, see our phpinfo: http://www.smallbrainer.de/phpinfo.php Reproduce code: --------------- <?php // header("Content-type: image/jpeg"); $im = imagecreate(400,30); $white = imagecolorallocate($im, 255,255,255); $black = imagecolorallocate($im, 0,0,0); // Replace path by your own font path // imagettftext($im, 20, 0, 10, 20, $black, "/var/www/web1/html/sb-drupal/fonts/slkscr.ttf", "Testing... Omega: &#937;"); imagejpeg($im); imagedestroy($im); ?> Expected result: ---------------- An image with some text on it. Actual result: -------------- Result is visible at http://drupal.smallbrainer.de/font.php. - A set of chars, but not an image ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24869&edit=1
