Mega Code Archive

 
Categories / Php / Graphics
 

Working with JPGs

<?php     $animage = imagecreate (200, 200);     $red = imagecolorallocate ($animage, 255, 0, 0);     imagerectangle ($animage, 0, 0, 200, 200, $red);     imagejpeg ($animage);     header ("Content-type: image/jpeg");     imagedestroy ($animage); ?>