tengo este codigo
Cita:
este codigo me corta una imagen y me la muestra pero yo quiero que enves de cortarlaif ($_SERVER['REQUEST_METHOD'] == 'POST')
{
$targ_w = 850; $targ_h = 314;
$jpeg_quality = 1000;
$src = 'demo_files/pool.jpg';
$img_r = imagecreatefromjpeg($src);
$dst_r = ImageCreateTrueColor( $targ_w, $targ_h );
imagecopyresampled($dst_r,$img_r,0,0,$_POST['x'],$_POST['y'],
$targ_w,$targ_h,$_POST['w'],$_POST['h']);
header('Content-type: image/jpeg');
imagejpeg($dst_r,null,$jpeg_quality);
exit;
}
{
$targ_w = 850; $targ_h = 314;
$jpeg_quality = 1000;
$src = 'demo_files/pool.jpg';
$img_r = imagecreatefromjpeg($src);
$dst_r = ImageCreateTrueColor( $targ_w, $targ_h );
imagecopyresampled($dst_r,$img_r,0,0,$_POST['x'],$_POST['y'],
$targ_w,$targ_h,$_POST['w'],$_POST['h']);
header('Content-type: image/jpeg');
imagejpeg($dst_r,null,$jpeg_quality);
exit;
}
la genere y la guarde dentro del servidor
necesito ayuda xfa
gracias de antemano