Pues es muy sencillo
pones este
Código PHP:
<?
header("Content-type: image/png");
$im = imagecreate(200,200);
$fondo = imagecolorallocate ($im, 255,255,255);
$rojo = imagecolorallocate ($im, 255,0,0);
imageline($im, 100, 100, 800, 800, $fondo);
header("Content-type: image/png");
imagepng($im);
imagedestroy($im);
?>
o pones este
Código PHP:
<?
if (imagetypes() & IMG_GIF) {
echo "El tipo GIF es soportado<br>";
}else{
echo "El tipo GIF NO ES SOPORTADO<BR>";
}
if (imagetypes() & IMG_PNG) {
echo "El tipo PNG es soportado<br>";
}else{
echo "El tipo PNG NO ES SOPORTADO<BR>";
}
if (imagetypes() & IMG_JPG) {
echo "El tipo JPG es soportado<br>";
}else{
echo "El tipo JPG NO ES SOPORTADO<BR>";
}
if (imagetypes() & IMG_WBMP) {
echo "El tipo WBMP es soportado<br>";
}else{
echo "El tipo WBMP NO ES SOPORTADO";
}
?>
o pones este, pero no los 3
Código PHP:
<?
header("Content-type: image/jpeg");
$im = imagecreate(200,200);
imagejpeg($im);
imagedestroy($im);
?>