$image = imagecreate(400,300); // do stuff to the image imagejpeg($image, '', 75); imagedestroy($image);?>