ma se voglio inserire del codice html come devo fare??
ad esempio io ho questo script
Codice PHP:
<?php
header ("Content-type: image/jpeg");
$image_name="imm.jpg";
$src_img = imagecreatefromjpeg("$image_name");
$origw=imagesx($src_img);
$origh=imagesy($src_img);
$thumb_width="157";
$thumb_heigth = "118";
$dst_img = imagecreatetruecolor($thumb_width,$thumb_heigth);
imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_width,$thumb_heigth ,imagesx($src_img),imagesy($src_img));
imagejpeg($dst_img,"",100);//100 qualità da 0 a 100
?>
se faccio così
Codice PHP:
<?php
header ("Content-type: image/jpeg");
?>
<html>
<?php
$image_name="imm.jpg";
$src_img = imagecreatefromjpeg("$image_name");
$origw=imagesx($src_img);
$origh=imagesy($src_img);
$thumb_width="157";
$thumb_heigth = "118";
$dst_img = imagecreatetruecolor($thumb_width,$thumb_heigth);
imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_width,$thumb_heigth ,imagesx($src_img),imagesy($src_img));
imagejpeg($dst_img,"",100);//100 qualità da 0 a 100
?>
</html>
mi da il solito errore...
grazie..