TRUE, 'width' => 1240, 'height' => 600, 'noc' => 32, 'r' => 50, 'dither' => FALSE, 'format' => 'jpeg', 'fill_with_smallest' => false, ); // Create a new heatmap based on the data and the config. $heatmap = new gd_heatmap($data, $config); // And print it out. If you're having trouble getting any images out of the // library , comment this out to allow your browser to show you the error // messages. $heatmap->output(); // Or save it to a file. Don't forget to set correct file permissions in the // target directory. //$heatmap->output('savetest.png');