Does anyone know how to make a image have rounded corners using a PHP script?
Download easyphpthumbnail.class.php from this link
from this you can resize and convert image into rounded image.
in below example image is converted into transparent circle image.
include_once('easyphpthumbnail.class.php');
$source = 'demo.jpg';
$width = 100;
$height = 100;
$thumb = new easyphpthumbnail;
$thumb -> Thumbheight = $width;
$thumb -> Thumbwidth = $height;
$thumb -> Backgroundcolor = '#FFFFFF';
$thumb -> Clipcorner = array(2,50,0,1,1,1,1);
$thumb -> Maketransparent = array(1,0,'#FFFFFF',10);
$thumb -> Createthumb($source);