#47970 [Bgs]: probleam with text in images on server local work fine
| From: | niravdetroja at gmail dot com | Date: | Wed, 15 Apr 2009 12:22:58 +0000 |
| Subject: | #47970 [Bgs]: probleam with text in images on server local work fine | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135834@lists.php.net to get a copy of this message | ||
ID: 47970
User updated by: niravdetroja at gmail dot com
Reported By: niravdetroja at gmail dot com
Status: Bogus
Bug Type: GD related
Operating System: Unix or linux
PHP Version: 5.2.9
New Comment:
i use this code for generate that image
<?php
$bname = $_POST['bname'];
$phone = $_POST['phone'];
$email = $_POST['email'];
// first image
$im = imagecreate(600, 160);
imagecolorallocate($im,255,255,255);
$text_color = imagecolorallocate($im,0,0,0);
$ellip_color=imagecolorallocate($im, 110, 31, 136);
imagefilledellipse($im,20,20,20,20,$ellip_color);
$font="./ariblk.TTF";
imagettftext($im, 25, 0, 35, 35, $text_color, $font,$bname);
imagettftext($im, 25, 0, 35, 75, $text_color, $font,'Phone: '.$phone);
imagettftext($im, 25, 0, 35, 115, $text_color, $font,'Email:
'.$email);
imagejpeg($im, './images/1.jpg');
imagedestroy($im);
?>
Previous Comments:
------------------------------------------------------------------------
[2009-04-14 21:24:19] jani@php.net
Sorry, this stinks pretty bad.
------------------------------------------------------------------------
[2009-04-14 20:43:39] niravdetroja at gmail dot com
Description:
------------
i tired to generate jpg images it generate but text is not shown
Reproduce code:
---------------
i tired to generate jpg images it generate but text is not shown
please check this link
http://noinvest.byethost7.com
i check all on windows it will generate all images with text.
but when i upload it to server it not generate text
my server support gd with freetype check it
http://noinvest.byethost7.com/phpinfo.php
help me please fast if possible
Expected result:
----------------
with text in jpg
http://noinvest.byethost7.com/images/1.jpg
it show with name phone and email
Actual result:
--------------
without text
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47970&edit=1