$im = imagecreatetruecolor(400, 300);
# ...
imagejpeg($im, '/tmp/image.jpg');ctrl + c
imagecreatetruecolorcreates true color GD image object with specified width & height | imagejpegsaves $im gd object to the specified 'jpeg' file |
/tmp/image.jpgpath to save jpeg to |