Topic: Qual o erro??? by roose in 17:43 12/12/2004  Será que alguem me pode dizer pq este codigo nao me coloca a imagem na pastas f .
<?php
gd_info();
// The file
$filename = 'test.jpg';
// Set a maximum height and width
$width = 150;
//$height = 100;
// Content type
header('Content-type: image/jpeg');
// Get new dimensions
list($width_orig, $height_orig) = getimagesize($filename);
if ($width && ($width_orig < $height_orig)) {
$width = ($height / $height_orig) * $width_orig;
} else {
$height = ($width / $width_orig) * $height_orig;
}
// Resample
$image_p = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($filename);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Output
$f="f";
imagejpeg($image_p,$f, 100);
?>
|
[ print ]
Qual o erro??? by roose in 17:43 12/12/2004 Re: suskind in 10:32 16/12/2004
|