increasing image size with GD and PHP

i seem to be too dumb for this :-)i have an image sayx=200y=200i want the image to stay the same but include a footer watermark lets say a.jpg which has a height of 20so i wanta final image of 220 and y 200i tried it this way but it wont work\[code\]$newimage=imagecreatetruecolor($width,$height+25);imagecopy($newimage, $this->parentInstance->getOldImage(), 0, 0, 0, 0, $watermarksize[0], $watermarksize[1]);imagecopy($newimage, $watermark, $dest_x, $dest_y, 0, 0, $watermarksize[0], $watermarksize[1]);imagecopy($this->parentInstance->getOldImage(), $newimage, 0, 0, 0, 0, $dest_x, $dest_y);\[/code\]
 
Back
Top