DedeCMS 上传缩略图启用水印的方法


打开include\FCKeditor\editor\dialog\dede_image.php ,第117行,原文:

 

以下为引用的内容:

if (in_array($imgfile_type,$cfg_photo_typenames))   
{
    WaterImg($fullfilename,'up');
}

  修改为:

 

以下为引用的内容:

if ($needwatermark=="1" && in_array($imgfile_type,$cfg_photo_typenames))   //修改 by nic
{
     WaterImg($fullfilename,'up');
     WaterImg($full_litfilename,'up'); // add by nic
}