Red Hat Bugzilla – Bug 76905
imagettftext command in php produces no output
Last modified: 2007-04-18 12:48:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
Description of problem:
when I run a php script which contains the imagettftext command, I get no
output. The httpd error log contains the following:
[Mon Oct 28 20:51:44 2002] [info] (104)Connection reset by peer:
core_output_filter: writing data to the network
[Mon Oct 28 20:51:44 2002] [info] (32)Broken pipe: core_output_filter: writing
data to the network
If I run the same php script with the imagettftext command commented out, no
errors are logged and the correct image is output to the browser.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.compose a php script using the imagettftext command.
2.run the script
3.observe the browser output
4.check the httpd error log.
Actual Results: no output image is produced in the browser.
Expected Results: the output image containing the required text should have
been sent to the browser.
using the RH 8.0 supplied gd, php and freetype programs
Solution found. When specifying the font file to use, the path to the font
file must be absolute. i.e. /var/www/html/project/arial.ttf not just