GetDotted Domains

Viewing Thread:
"PHP Images"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Mon 22/07/02 at 13:58
Regular
Posts: 787
Eek, this is very hard even though i've only just started learning PHP anyway, I thought i'd give these puppies a little read over, they're darn clever, thing is, i can't get either gif filetypes to work or font's

$font = "usr/local/jdk121_pre-v1/ jre/lib/fonts/VerdanaRegular.ttf";
(spaces)
*later o in the script*

imagettftext( $image, 50, 0, 20, 100, $blue, $font, "Welcome!" );

This doesn't seem to work, not only does it say "no gif support" but when I change it to jpeg (which works) it says theres no ttf support, so no font :)

My next problem is, now i'm using jpeg's instead of Gifs, it has the lower quality mess.
http://www.enterthefog.co.uk/reserve/fog3.php
as found on most jpeg images when not kept at a good quality (look around the edges)

can someone help please? :)
Mon 22/07/02 at 14:23
Regular
"IT'S ALIVE!!"
Posts: 4,741
Nice one, PNG does the trick i'll have a look around the website though.
Mon 22/07/02 at 14:13
Posts: 0
Have you made sure you have TTF Support enabled? If so, try moving the font to the same directory as the PHP file to make sure you're not having path problems.

With regards to the JPEG quality issue, the imagejpeg() function has a quality attribute:

int imagejpeg ( resource image [, string filename [, int quality]])

Download the PHP Manual from http://www.php.net for information about all GD functions.

P.S. I believe the reason you cannot get GIFs to work is because the compression they used (LZW????) was copyrighted by some US firm so they had to take it out of newer versions of GD. If you look around on the net (e.g. Sourceforge) you can download an older version with GIF support.

Alternatively just use PNG.
Mon 22/07/02 at 13:58
Regular
"IT'S ALIVE!!"
Posts: 4,741
Eek, this is very hard even though i've only just started learning PHP anyway, I thought i'd give these puppies a little read over, they're darn clever, thing is, i can't get either gif filetypes to work or font's

$font = "usr/local/jdk121_pre-v1/ jre/lib/fonts/VerdanaRegular.ttf";
(spaces)
*later o in the script*

imagettftext( $image, 50, 0, 20, 100, $blue, $font, "Welcome!" );

This doesn't seem to work, not only does it say "no gif support" but when I change it to jpeg (which works) it says theres no ttf support, so no font :)

My next problem is, now i'm using jpeg's instead of Gifs, it has the lower quality mess.
http://www.enterthefog.co.uk/reserve/fog3.php
as found on most jpeg images when not kept at a good quality (look around the edges)

can someone help please? :)

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

The coolest ISP ever!
In my opinion, the ISP is the best I have ever used. They guarantee 'first time connection - everytime', which they have never let me down on.
Excellent
Excellent communication, polite and courteous staff - I was dealt with professionally. 10/10

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.