|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-27 22:07 UTC] sterling@php.net
[2002-10-28 16:35 UTC] jbw at justinw dot net
[2002-10-28 16:46 UTC] rasmus@php.net
[2002-10-28 17:21 UTC] jbw at justinw dot net
[2002-10-28 17:23 UTC] rasmus@php.net
[2002-10-28 18:41 UTC] jbw at justinw dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 09:00:02 2025 UTC |
I cannot use implode with the ImageTTFText function. The following code does not work, it returns a broken image: <?php Header("Content-type: image/png"); //$string = "Test"; $string = implode(" ", "$argv"); $string = urldecode($string); $im = imageCreateFromPng("header_img2.png"); $white = ImageColorAllocate($im, 167, 194, 206); $px = (imagesx($im)-7.5*strlen($string))/2; ImageTTFText($im, 30, 0, $px, 42, $white, "/usr/local/apache/htdocs/ttf/ARTBRUSH.TTF", "$string"); ImagePng($im); ImageDestroy($im); ?> If I comment out the implode line and set $string then it works great. I use implode with other code for creating other images but not with ImageTTFText. Thanks! - Justin