POST TIME:2020-04-10 16:45
具體教程如下:
打開根目錄include下的image.class.php文件,用開查找
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,也就是水印的位置,和下表是相對應的,這里你就可以修改后面的數據修改坐標了。
頂部居左 頂部居中 頂部居右
左邊居中 圖片中心 右邊居中
底部居左 底部居中 底部居右
比如我把水印圖與原圖的右下角底部重合,就把第九項的兩個“5”修改為“0”即可。