> ./carshow.log"); if( file_exists( $fn ) ){ list( $w, $h ) = getimagesize( $fn ); $sp=imagecreatefromjpeg( $fn ); //imagecopyresampled( $im, $sp, 0, 0, 0, 0, 480, 360, $w, $h ); imagecopyresampled( $im, $sp, 0, 0, 0, 0, 1024, 768, $w, $h ); }else{ $fn = "/home/mli/www/buyerno1.png"; if( file_exists( $fn ) ){ list( $w, $h ) = getimagesize( $fn ); $sp=imagecreatefrompng( $fn ); //imagecopyresampled( $im, $sp, 0, 0, 0, 0, 480, 360, $w, $h ); imagecopyresampled( $im, $sp, 0, 0, 0, 0, 1024, 360, $w, $h ); } } /* $fn = sprintf( "%s/ILA%04d3.JPG", ILA_FOLDER, $_REQUEST["spno"] ); if( file_exists( $fn ) ){ list( $w, $h ) = getimagesize( $fn ); $sp=imagecreatefromjpeg( $fn ); imagecopyresampled( $im, $sp, 250, 0, 0, 0, 250, 189, $w, $h ); } */ /* $fn = sprintf( "%s/i01%05d.JPG", CAR, $_REQUEST["spno"] ); if( file_exists( $fn ) ){ list( $w, $h ) = getimagesize( $fn ); $sp=imagecreatefromjpeg( $fn ); imagecopyresampled( $im, $sp, 540, 665, 0, 0, 270, 202, $w, $h ); } */ $fn = sprintf( "%05d.JPG", $_REQUEST["spno"] ); header('Content-type: image/jpeg'); header('Content-FileName: '.$fn ); ob_start(); imagejpeg( $im ); $size = ob_get_length(); header("Content-Length: " . $size); ob_end_flush(); ?>