Yellow text?
Posted on June 25, 2007
I stumbled over a strange bug on two systems the other day where the imagettftext() function was always writing the text in yellow. No matter how I set the colour, imagecolorallocate($image, 0, 0, 0);, I would always get yellow. Why yellow?
Both systems are Ubuntu, I don't know if it is a mix up on the libraries from the package, or indeed PHP.
I had to recompile PHP ignoring the --with-ttf option which most docs suggest, and just use the --with-freetype-dir instead. Problem solved.
Related posts
- Find text within files
Stuck trying to find text within files on Linux? cd /directory_tree_you_want_to_search find . -type f... - Change “Howdy” text in WordPress admin
The "Howdy admin" text can some times come across a little unprofessional in some WordPress... - Detecting yum problems early
Sometimes, yum freaks out. You might get your installation interrupted or some crazy happening which... - PEAR – Text_Spell_Audio Package
I've just noticed a new(-ish) package on PEAR, called Text_Spell_Audio. It generates sound clips speaking... - “sh: -t: command not found” with PHP cron/command line
Are you getting "sh: -t: command not found" when running a PHP from cron or...


