I'm running php on an intranet-server w/o www-connectivity and without any graphics-libraries installed. Now I need to create a color-block of 16x16 pixels (coloured #86D0FF) and was wondering if there was a way to return the required sequence of bytes for such a simple thing without having to install the libraries?
In other words: I'd like to achieve the following without having GD installed:
<?php
header("Content-Disposition: Attachment;filename=image.png"); // so that it can be saved...
header("Content-type: image/png");
$img = imagecreate(16,16);
$color = imagecolorallocate( $image , 134 , 208 , 255 );
imagefilledrectangle( $image , 0 , 0 , 16 , 16 , $color );
imagepng( $image );
imagedestroy( $image );