DLE水印文件位置:{Theme}dleimages\
watermark_dark.png
watermark_light.png
flv_watermark.png
默认位置在图片的右下角,图片比较小。要改变水印位置(网上资料,没测试)
手动修改图片水印位置:修改方法
1.打开文件 engine/classes/thumb.class.php
找到
$margin = 7;
替换为
if (isset($_POST["watermark_x"]) And ($_POST["watermark_y"])){
$margin_x = $_POST['watermark_x'];
$margin_y = $_POST['watermark_y'];
} else {
$margin_x = 7;
$margin_y = 7;
}
再找到
$watermark_x = $image_width - $margin - $watermark_width;
$watermark_y = $image_height - $margin - $watermark_height;
替换为
$watermark_x = $image_width - $margin_x - $watermark_width;
$watermark_y = $image_height - $margin_y - $watermark_height;
2.打开文件 /engine/inc/files.php
找到代码
<label for=make_watermark>$lang[images_water]</label></b>
替换为
<label for=make_watermark>$lang[images_water]</label></b>
<div name=\"margin\" style=\"visibility:visible\">
<div class=\"hr_line\"></div>Watermark <-> right
<input style=\"width:35px;margin:3px;\" type=\"text\" value=\"7\" name=\"watermark_x\">px
Watermark <-> bottom <input style=\"width:35px;margin:3px;\" type=\"text\" value=\"7\" name=\"watermark_y\">px