php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47970 probleam with text in images on server local work fine
Submitted: 2009-04-14 20:43 UTC Modified: 2009-04-15 12:22 UTC
From: niravdetroja at gmail dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 5.2.9 OS: Unix or linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: niravdetroja at gmail dot com
New email:
PHP Version: OS:

 

 [2009-04-14 20:43 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-14 21:24 UTC] jani@php.net
Sorry, this stinks pretty bad.
 [2009-04-15 12:22 UTC] niravdetroja at gmail dot com
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);
?>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 23:01:33 2025 UTC