Jump to content

Archived

This topic is now archived and is closed to further replies.

maxim

PHP and GD

Recommended Posts

Hi,

i made a small script which reads a HTML file and stores some text from it. It then outputs that text onto a image.

i tested the script on my local apache server with PHP Version 5.1.2. heres is a copy of the final result.

[img src=\"http://maximhome.no-ip.org/images/local.png\" border=\"0\" alt=\"IPB Image\" /]

here is a copy of the exact same script running on my remote web server using PHP Version 4.4.2

[img src=\"http://maximhome.no-ip.org/images/remote.png\" border=\"0\" alt=\"IPB Image\" /]

there is a obvious diffrence between images. its the text output. on the remote web server is
displayed much better with even spacing between letters in the text.

any ideas on why this is happening. my guess is its the diffrent version of eith PHP or GD on the diffrent servers
what do you guys/girls think ?

the dynamic version of the image can be foun here [a href=\"http://maximhome.no-ip.org/picture.html\" target=\"_blank\"]http://maximhome.no-ip.org/picture.html[/a]

Share this post


Link to post
Share on other sites
are you trying to use a specific font? possibly the server does not recognize the font and is using a default font. which would mean that on your local server it's not reading your specified font correctly. just a guess.

Share this post


Link to post
Share on other sites
The font looks the same to me - what versions of PHP and GD are running on each server? Does the remote server use the more recent releases?

Share this post


Link to post
Share on other sites
the font comes from a file that is located in the same directory as the script.

those images should work...

as i alrady stated mt PHP version my GD versions are as follows

local server =GD Version 2.0 or higher

remote server = GD Version bundled (2.0.28 compatible)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.