Hi there,
I was wondering what's the quickest way to put a (transp-PNG)
over a picture?
I have a code, but i guess it's sloppy. And it's slow.
(Code below this message)
Could anyone help me out on this?
Thanks
Greetings Frizzle.
*************** *************** *******
$img_id = substr( '0000000000'.$_ GET['id'], -10, 10);
$info = getimagesize($i mg_id.".jpg");
$photo = imagecreatetrue color($info[0], $info[1]);
$pic = imagecreatefrom jpeg($img_id.". jpg");
imagecopy($phot o, $pic, 0, 0, 0, 0, $info[0], $info[1]);
$logo = imagecreatefrom png("photo_logo .png");
imagecopy($phot o, $logo, 20, 30, 0, 0, 128, 20);
header("Content-type: image/jpeg");
imagejpeg($phot o , "", 90);
imagedestroy($p hoto);
*************** *************** *******
I was wondering what's the quickest way to put a (transp-PNG)
over a picture?
I have a code, but i guess it's sloppy. And it's slow.
(Code below this message)
Could anyone help me out on this?
Thanks
Greetings Frizzle.
*************** *************** *******
$img_id = substr( '0000000000'.$_ GET['id'], -10, 10);
$info = getimagesize($i mg_id.".jpg");
$photo = imagecreatetrue color($info[0], $info[1]);
$pic = imagecreatefrom jpeg($img_id.". jpg");
imagecopy($phot o, $pic, 0, 0, 0, 0, $info[0], $info[1]);
$logo = imagecreatefrom png("photo_logo .png");
imagecopy($phot o, $logo, 20, 30, 0, 0, 128, 20);
header("Content-type: image/jpeg");
imagejpeg($phot o , "", 90);
imagedestroy($p hoto);
*************** *************** *******
Comment