Edit report at https://bugs.php.net/bug.php?id=63708&edit=1

 ID:                 63708
 Updated by:         s...@php.net
 Reported by:        rameezsoomro dot pk at live dot com
-Summary:            5.16.1
+Summary:            imagefttext or imagettftext both function are return
                     a blank image
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            GD related
 Operating System:   Win 7
 PHP Version:        5.4.9
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------
[2012-12-06 11:42:48] rameezsoomro dot pk at live dot com

Description:
------------
Note: I i've choose wrong version on PHP Version list because my php version 
not 
available on list option...

I am using xampp on localhost/computer with Apache/2.4.3 (Win32) OpenSSL/1.0.1c 
PHP/5.4.7 



imagefttext or imagettftext both function are return a blank image (null) and 
my 
gd library was also enable ...tell me what should i do... 

Test script:
---------------
// Set the content-type
header('Content-Type: image/png');

// Create the image
$im = imagecreatetruecolor(400, 30);

// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 399, 29, $white);

// The text to draw
$text = 'Testing...';
// Replace path by your own font path
$font = 'arial.ttf';

// Add some shadow to the text
imagefttext($im, 20, 0, 11, 21, $grey, $font, $text);

// Add the text
imagefttext($im, 20, 0, 10, 20, $black, $font, $text);

// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63708&edit=1

Reply via email to