Jump to content

Dynamic image script wanted


Mercifull

Recommended Posts

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 email.png 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?

612d9da508.png

Mercifull.png

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

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

Times new roman, bold, 10. :D

612d9da508.png

Mercifull.png

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

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.

612d9da508.png

Mercifull.png

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.