Código PHP:
<?php
$arc=$_GET['ruta'];
$image = imagecreatefromjpeg($arc);
$img_w = imagesx($image);
$img_h = imagesy($image);
$new_img_w = $_GET['ancho'];
$new_img_h = $_GET['alto'];
$new_img_source = imagecreatetruecolor($new_img_w,$new_img_h);
imagecopyresampled($new_img_source, $image, 0, 0, 0, 0, $new_img_w, $new_img_h,$img_w, $img_h);
header("Content-type: image/jpeg");
imagejpeg($new_img_source);
?>
Segun e phpinfo tengo bien instalada la libreria GD :S que puede ser?
gracias ;)
p.D: Me da este error:
Error CGI
La aplicación CGI especificada puede comportarse de forma anormal si no recibe un conjunto completo de encabezados HTTP.