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
https://forums.phpfreaks.com/topic/153869-php-generated-images/
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
https://forums.phpfreaks.com/topic/153869-php-generated-images/#findComment-811502
Share on other sites

Archived

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

×
×
  • 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.