Introduction - If you have any usage issues, please Google them yourself
PHP' s image processing class, very practical to use: <?php
require_once thumb.php
header("Content-type : text/html charset=GBK")
$t = new ThumbHandler()
//给图片增加水印
$t-> setSrcImg (" ./img/00.jpg" ) $ t-> setDstImg (" ./tmp/new_test.jpg" ) $ t-> setMaskImg (" ./img/test.gif" ) $ t- > setMaskPosition (4) $ t-> setMaskImgPct (80) $ t-> setDstImgBorder (4, " # dddddd" ) // specify the scaling $ t-> createImg (100,120) ?> <img src="img/00.jpg"><img src="tmp/new_test.jpg">