修改php/controller.php 文件,大概135行处
实现前后台加水印功能
/* 上传图片 */ case 'uploadimage': //加水印 $type=1; $result = include("action_upload.php"); include("../../../class/gd.php"); $arr= json_decode($result,TRUE); $editor=2; imageWaterMark("../../../../".$arr[url],$public_r['markpos'],$public_r['markimg'],$public_r['marktext'],$public_r['markfontsize'],$public_r['markfontcolor'],$public_r['markfont'],$public_r['markpct'],$public_r['jpgquality']); break; //加水印结束
|