|
  
- UID
- 1
- 帖子
- 3801
- 精华
- 66
- 积分
- 8365
- 威望
- 8365 度
- 论坛币
- 12643 元
- 阅读权限
- 200
- 在线时间
- 1528 小时
- 注册时间
- 2007-1-15
- 最后登录
- 2009-1-9
|
1楼
发表于 2008-3-4 12:31
| 只看该作者
让DEDE支持中文水印
修改/include/inc_photograph.php,在165行处加这行代码:- $w_text = iconv("GB2312","UTF-8",$w_text);
复制代码 最好用中文字体替换/include/data里的ant1.ttf和ant2.ttf,如用黑体,simhei.ttf。- //图片自动加水印函数原始函数
- //------------------------------------------------
- function ImgWaterMark($srcFile,$w_pos=0,$w_img="",$w_text="",$w_font=5,$w_color="#FF0000",$w_pct)
- {
- $font_type = dirname(__FILE__).'/data/ant1.ttf';
- if(empty($srcFile) || !file_exists($srcFile)) return ;
- $w_text = iconv("GB2312","UTF-8",$w_text);//加这行就可以支持中文水印。
复制代码 |
|