PHP Code:
<?php
$imagedata = "http://signup.leagueoflegends.com/en/signup/captcha/";
$destfilename = "capatcha.gif";
$img = imagecreatefrompng($imagedata);
$imageWidth = imagesx($img);
$imageHeight = imagesy($img);
for ($i = 0; $i < $imageWidth; $i++)
{
for ($j = 0; $j < $imageHeight; $j++)
{
$rgb = imagecolorat($img, $i, $j);
$r = ($rgb >> 16) & 0xFF;
$g = ($rgb >> 8) & 0xFF;
$b = $rgb & 0xFF;
$newColor = ImageColorAllocate($img, 255, 255, 255);
if($r == "128" && $g == "128" && $b == "255")
ImageSetPixel($img, $i, $j, $newColor);
else if($r == "227" && $g == "218" && $b == "237")
ImageSetPixel($img, $i, $j, $newColor);
else if($r == "128" && $g == "191" && $b == "255")
ImageSetPixel($img, $i, $j, $newColor);
}
}
header('Content-Type: image/png');
imagegif($img, $destfilename);
imagepng($img);
imagedestroy($img);
?>
(it removed the background-the net-and the random thingy on the letters)
only thing left is to straight the words and compare em
example






