use GD; $im = new GD::Image(1000,100,1); print $im->png(0);