Mercifull Posted April 19, 2007 Share Posted April 19, 2007 Im looking for a php script that used ImageMagick or GD to create images on the fly with a simply variable. Basicly I want something so that If I embed the following image and it will create an image on the fly that shows up as [email protected] I tried myself and got into a fiddle and I coudlnt find anything useful online. Anyone got ideas? Mercifull <3 Suzi "We don't want players to be able to buy their way to success in RuneScape. If we let players start doing this, it devalues RuneScape for others. We feel your status in real-life shouldn't affect your ability to be successful in RuneScape" Jagex 01/04/01 - 02/03/12 Link to comment Share on other sites More sharing options...
____ Posted April 20, 2007 Share Posted April 20, 2007 I'll have a play around later tonight. I might be able to knock something out. I assume it's just an image replacement of the email address so as to stop spiders harvesting the email address? Link to comment Share on other sites More sharing options...
____ Posted April 20, 2007 Share Posted April 20, 2007 Got a minimum height for the text, in pixels? Link to comment Share on other sites More sharing options...
Mercifull Posted April 20, 2007 Author Share Posted April 20, 2007 Times new roman, bold, 10. :D Mercifull <3 Suzi "We don't want players to be able to buy their way to success in RuneScape. If we let players start doing this, it devalues RuneScape for others. We feel your status in real-life shouldn't affect your ability to be successful in RuneScape" Jagex 01/04/01 - 02/03/12 Link to comment Share on other sites More sharing options...
Mercifull Posted April 26, 2007 Author Share Posted April 26, 2007 I have recieved from help via pm from Cruiser with the following code. <?php $email = explode('/',$_SERVER['REQUEST_URI']); $img = imagecreate(strlen("$email[2]@$email[3]")*10, 18); $background = imagecolorallocate($img, 255, 255, 255); $text = imagecolorallocate($img, 0, 0, 0); imagestring($img, 5, 2, 1, "$email[2]@$email[3]", $text); header("Content-type: image/png"); imagepng($img); ?> I will be tidying this up and customising it to my needs shortly and post again on my progress soon. Mercifull <3 Suzi "We don't want players to be able to buy their way to success in RuneScape. If we let players start doing this, it devalues RuneScape for others. We feel your status in real-life shouldn't affect your ability to be successful in RuneScape" Jagex 01/04/01 - 02/03/12 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now