文章出處

<?php
$srcFile="../images/logo.jpg";
$dstFile="uploads/des_big.jpg";
$srcFileInfo=getimagesize($srcFile);
//print_r( $srcFileInfo);
$src_w=$srcFileInfo[0];
$src_h=$srcFileInfo[1];
$dstFileInfo=getimagesize($dstFile);
$srcMime=$srcFileInfo['mime'];
$dstMime=$dstFileInfo['mime'];
$createSrcFun=str_replace("/","createfrom",$srcMime);
$createDstFun=str_replace("/","createfrom",$dstMime);
$outDstFun=str_replace("/",null,$dstMime);
$dst_im=$createDstFun($dstFile);
$src_im=$createSrcFun($srcFile);
imagecopymerge($dst_im,$src_im,0,0,0,0,$src_w,$src_h,20);
header("content-type:".$dstMime);
$outDstFun($dst_im);
imagedestroy($src_im);
imagedestroy($dst_im);
?>

 


文章列表




Avast logo

Avast 防毒軟體已檢查此封電子郵件的病毒。
www.avast.com


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()