Jump to content

Image Noise


Irresistable

Recommended Posts

How do I create Noise onto this captcha image creation?

<?php
session_start();
header ("Content-type: image/png");

$rno = rand(10000,99999).'  '.rand(10000,99999);
$_SESSION['ckey'] = $rno;

$img_handle = imageCreateFromPNG("bg1.PNG");
$color = ImageColorAllocate ($img_handle, 0, 0, 0);
ImageString ($img_handle, 2, 10, 8, $rno, $color);
ImagePng ($img_handle);
ImageDestroy ($img_handle);

?>

THe ImageString() isn't quite finished, still need to mess around with the sizes.

Link to comment
https://forums.phpfreaks.com/topic/186832-image-noise/
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.