无水印图片

  • 如何在织梦DedeCMS的百度编辑器中上传不带水印的图片?

    在织梦DedeCMS中,要解决百度编辑器上传图片无水印的问题,可以通过修改配置文件来实现。具体操作如下:,,1. 打开/dede/inc/inc_archives_functions.php文件,找到以下代码:,,“php,$cfg_watermark = $this˃CnConfig˃get(‘cfg_watermark’); //获取水印开关,if($cfg_watermark == 1) {, import(“@@image/watermark.fun.php”);, $uploadfile = $this˃GetUploadFile();, $img = GetImageSize($uploadfile[‘localpath’]);, $new_w = $img[0];, $new_h = $img[1];, $cfg_watermark_pic = $this˃CnConfig˃get(‘cfg_watermark_pic’); //获取水印图片路径, if(!empty($cfg_watermark_pic)) {, WatermarkImage($cfg_watermark_pic, $uploadfile[‘localpath’], $new_w, $new_h);, },},“,,2. 将上述代码注释掉或者删除,即可实现上传图片无水印。,,注意:修改配置文件前,请确保已备份原文件,以防出现问题时可以恢复。

    2024-10-03
    02
免费注册
电话联系

400-880-8834

产品咨询
产品咨询
分享本页
返回顶部
云产品限时秒杀。精选云产品高防服务器,20M大带宽限量抢购  >>点击进入