#28492 [NEW]: imagettftext not displaying output
| From: | nimion at tripsoftware dot com | Date: | Sat, 22 May 2004 16:36:47 +0000 |
| Subject: | #28492 [NEW]: imagettftext not displaying output | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-59889@lists.php.net to get a copy of this message | ||
From: nimion at tripsoftware dot com
Operating system: Linux
PHP version: 4.3.4
PHP Bug Type: GD related
Bug description: imagettftext not displaying output
Description:
------------
imagettftext is not producing any output, just a blank image. I am using
4.3.4 with GD 2.0.12, and have tried everything to get it to at least
report whats wrong (including giving it a blatently false font path, which
still did not return errors). The same code works fine on my dev box
(Windows 4.3.4 w/GD 2.0.22).
Reproduce code:
---------------
<?php
$im = imagecreate(400, 400);
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 255, 0);
// Replace path by your own font path
$r = imagettftext($im, 20, 0, 10, 20, $black, "arial", "LET THERE BE
LIGHT");
imagejpeg($im);
imagedestroy($im);
?>
Expected result:
----------------
Text on an image.
Actual result:
--------------
Nothing.
--
Edit bug report at http://bugs.php.net/?id=28492&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28492&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28492&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28492&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28492&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28492&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28492&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28492&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28492&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28492&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28492&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28492&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28492&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28492&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28492&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28492&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28492&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28492&r=float