查看文件: vipimage.php
大小: 663 字节
类型: application/octet-stream
<? $source="/www2/skybni/ecard/reimg/user_0000409.jpg"; $background='/www2/skybni/vipecard/vipimage/ecardbackground.jpg'; //966x1693 $xname=sprintf("%06d",rand(1,666666)).'.jpg'; $target='/www2/skybni/vipecard/vipimage/'.$xname; $src1 = new Imagick($background); $src2 = new Imagick($source ); $src1->setImageVirtualPixelMethod(Imagick::VIRTUALPIXELMETHOD_TRANSPARENT); $src1->setImageArtifact('compose:args', "1,0,-0.5,0.5"); $src1->compositeImage($src2, Imagick::COMPOSITE_MATHEMATICS, 100, 100); $src1->writeImage($target); //Header("Content-type: image/PNG"); //ImagePNG($im); //ImageDestroy($webjpg); ?>
保存
取消
返回文件列表