#30652 [Fbk->NoF]: imagettftext different output os
| From: | php-bugs at lists dot php dot net | Date: | Thu, 27 Jan 2005 00:00:07 +0000 |
| Subject: | #30652 [Fbk->NoF]: imagettftext different output os | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72901@lists.php.net to get a copy of this message | ||
ID: 30652
Updated by: php-bugs@lists.php.net
Reported By: info at paulinternet dot nl
-Status: Feedback
+Status: No Feedback
Bug Type: GD related
Operating System: Windows & Linux
PHP Version: 4.3.9
Assigned To: pajoye
New Comment:
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2005-01-14 22:18:29] sniper@php.net
The urls do NOT work. Please post working URLS.
------------------------------------------------------------------------
[2004-11-19 16:09:17] info at paulinternet dot nl
The urls in my second post do work.
You can ignore my first post, when I posted it I didn't know the
outputs were different because the server has an other os than my
computer.
------------------------------------------------------------------------
[2004-11-19 11:31:36] pajoye@php.net
Please provide valid URL. These urls (the images) do not work .
--Pierre
------------------------------------------------------------------------
[2004-11-04 19:52:30] info at paulinternet dot nl
Description:
------------
Imagettftext produces different images on Windows and Linux.
I used the Verdana font, but this happends on more(maybe all) fonts.
GD version: bundled (2.0.28 compatible)
Windows output: http://www.paulinternet.nl/php.net/Windows.png
Linux output: http://www.paulinternet.nl/php.net/Linux.png
Verdana font: http://www.paulinternet.nl/php.net/Verdana.ttf
Reproduce code:
---------------
header("Content-type: image/png");
$Image = imagecreate(200, 24);
imagecolorallocate($Image, 0, 0, 0);
$Kleur = imagecolorallocate($Image, 255, 255, 255);
imagettftext($Image, 16, 0, 2, 18, $Kleur,
"Pagina's/Tekst/Verdana.ttf", "I have a problem");
imagepng($Image);
imagedestroy($Image);
------------------------------------------------------------------------
[2004-11-01 16:00:00] info at paulinternet dot nl
Description:
------------
I can run this script on the localhost and on the server of my hosting
provider.
The image on the localhost is a bit difference from the image on the
server.
Is this a bug? If not, how can I get on my computer the same output as
on the server?
My phpinfo: http://www.paulinternet.nl/php.net/Localhost.htm
Server phpinfo: http://www.paulinternet.nl/php.net/Server.htm
My output: http://www.paulinternet.nl/php.net/Localhost.png
Server output: http://www.paulinternet.nl/php.net/Server.png
Verdana font: http://www.paulinternet.nl/php.net/Verdana.ttf
Reproduce code:
---------------
header("Content-type: image/png");
$Image = imagecreate(200, 24);
imagecolorallocate($Image, 0, 0, 0);
$Kleur = imagecolorallocate($Image, 255, 255, 255);
imagettftext($Image, 16, 0, 2, 18, $Kleur,
"Pagina's/Tekst/Verdana.ttf", "I have a problem");
imagepng($Image);
imagedestroy($Image);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30652&edit=1