I can not find a solution to this. I want to add 20px empty space for this image: http://img233.imageshack.us/img233/419/78317401.jpg
and then paste this watermark at the bottom (on an empty space)
Thus, the output will be:
http://img252.imageshack.us/img252/4554/wynik.jpg
I do not want to stretch it.
EDIT
This is with WIdeImage. Rly simple.
Try the wide image api http://wideimage.sourceforge.net/Check out one of them, it can help you Merge and Resize
1) Download both images using
http://www.php.net/manual/en/function.imagecreatefromjpeg.php
2) Get the 1st height and width of the image with
http://www.php.net/manual/en/function.imagesy.php
http://www.php.net/manual/en/function.imagesx.php
3) Create an enlarged image with a height of + 20
http://www.php.net/manual/en/function.imagecreatetruecolor.php
4) Copy the first image and the second image to a larger image
http://www.php.net/manual/en/function.imagecopy.php
5) Save it
http://www.php.net/manual/en/function.imagejpeg.php
6) Made