Modifying the Imagewatermark method under/e/class/gd.php
As follows
if ($isWaterImage)//Picture watermark
{
if ($water _info[2]==3)
{
imagecopy ($ground _im, $water _im, $posX, $posY, 0 , 0, $water _w, $water _h);//copy watermark to target file
}
else
{
Imagecopymerge ($ground _im, $water _im, $posX, $posY, 0, 0 , $water _w, $water _h, $w _pct);//copy watermark to target file
}
}
To
if ($isWaterImage)//Picture watermark
{
//Definition tile data
$x _length = $ground _w-10;//x axis total length
$y _length = $ground _h-10;// Y axis Total length
if ($water _info[2]==3)
{
//imagecopy ($ground _im, $water _im, $posX, $posY, 0, 0, $water _w, $water _h) ;//copy watermark to target file
//Loop tile watermark for
($x = 0; $x < $x _length $x) {for
($y = 0; $y < $y _length; $y) {
Imageco PY ($ground _im, $water _im, $x, $y, 0, 0, $water _w, $water _h);
$y + + $water _h;
}
$x + + $water _w;
}
}
else
{
//imagecopymerge ($ground _im, $water _im, $posX, $posY, 0, 0, $water _w, $water _h, $w _pct);//copy watermark to destination file
//Loop tile watermark for
($x = 0; $x < $x _length $x) {for
($y = 0; $y < $y _length; $y) {
Imagecopymerge ($ Ground_im, $water _im, $x, $y, 0, 0, $water _w, $water _h, $w _pct);
$y + + $water _h;
}
$x + + $water _w;
}
}