在织梦默认的水印位置上是和图片的边缘有5个像素的距离,可能也会有很多朋友想要修改水印所在的位置,放在一个自己想要的位置上。 打开include/image.class.php 找到以下代码: case 1: $x = +5; $y = +5; break; case 2: $x = ($imagewidth - $logowidth) / 2; $y = +5; break; case 3: $x = $imagewidth - $logowidth - 5; $y = +5; break; case 4: $x = +5; $y = ($imageheight - $logoheight) / 2; break; case 5: $x = ($imagewidth - $logowidth) / 2; $y = ($imageheight - $logoheight) / 2; break; case 6: $x = $imagewidth - $logowidth - 5; $y = ($imageheight - $logoheight) / 2; break; case 7: $x = +5; $y = $imageheight - $logoheight - 5; break; case 8: $x = ($imagewidth - $logowidth) / 2; $y = $imageheight - $logoheight - 5; break; case 9: $x = $imagewidth - $logowidth - 5; $y = $imageheight - $logoheight -5; break; 以上代码中的1-9就是水印的位置,只要修改上面代码中的数据就可以修改水印位置了。以上9个位置依次对应的也就是“顶部居左、顶部居中、顶部居右、左边居中、图片中心、右边居中、底部居左、底部居中、底部居右”。 例:...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|