> ./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 ); } */ break; case 1://マトリックス表示用 $im = imagecreatetruecolor( 800, 1080 ); $bf = imagecolorallocate( $im, 0x10, 0x10, 0x10 ); imagefill( $im, 0, 0, $bf ); $fn = sprintf( "%s/%04d.JPG", SPN_FOLDER, $_REQUEST["spno"] ); if( file_exists( $fn ) ){ list( $w, $h ) = getimagesize( $fn ); $sp=imagecreatefromjpeg( $fn ); imagecopyresampled( $im, $sp, 0, 0, 0, 0, 800, 800, $w, $h ); } $fn = sprintf( "%s/ILA%04d2.JPG", ILA_FOLDER, $_REQUEST["spno"] ); //@system("echo $fn >> ./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, 800, 0, 0, 400, 300, $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, 800, 0, 0, 400, 300, $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, 400, 800, 0, 0, 400, 300, $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, 400, 800, 0, 0, 400, 300, $w, $h ); } */ break; case 2://天吊表示 $im = imagecreatetruecolor( 960, 680 ); $bf = imagecolorallocate( $im, 0x44, 0x44, 0x44 ); imagefill( $im, 0, 0, $bf ); $fn = sprintf( "%s/ILA%04d2.JPG", ILA_FOLDER, $_REQUEST["spno"] ); if( file_exists( $fn ) ){ list( $w, $h ) = getimagesize( $fn ); $sp=imagecreatefromjpeg( $fn ); imagecopyresampled( $im, $sp, 0, 0, 0, 0, 960, 680, $w, $h ); } break; } $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(); ?>