Jump to content

PHP Generated Images


Fabis94

Recommended Posts

I want to make a PHP script that makes images that show your stats for a specific game.

I want it to be like this: http://www.draynor.net/stat_signatures.php

If you want to try it out, use the username Zezima.

 

It automatically reads your stats from the Hiscore database and shows it on an image.

The hiscores are read from here: http://hiscore.runescape.com/index_lite.ws?player=YourUsername (you change YourUsername to Zezima for example).

 

I've never worked with Image editing in PHP so it would be nice if you could explain and show :D

 

P.S. I don't need all the options like Male/Female, Backgrounds and stuff like that. I need only the plain way of putting text on an image.

 

Lets say it writes your name on a green image (plain green) with the GET function.

Link to comment
Share on other sites

Look at the imagettf function in particular.

 

If you need pixel precision on the return value of where text is written you might be better off using imagick, it's documentation however is poor and not every host has it enabled so it might not even be an option.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.