将imagecopyresampled上的新图像设置为100%宽度/高度

I am using a modified version of http://shanechism.com/code/2011/06/facebook-picture-overlay-script (demo here) to set a frame around a picture that the user uploads.

However, for the life of me I can't figure out how to set the frame to encompass the entire image (100% width / height), as opposed to appear as a 'watermark' on the bottom-left of the image.

I believe the answer lies in the following line of code:

imagecopyresampled( $tmp, $src, 0, 0, 0, 0, $new[0], $new[1],
    $this->uploadedInfo[0], $this->uploadedInfo[1] );

Anyone have any ideas? From what I've researched on Stackoverflow & beyond, the answer isn't as straight forward as I'd hope, but I thought I'd ask here just in-case.

Thanks

imagecopyresampled works like this

bool imagecopyresampled ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h , int $src_w , int $src_h )

You can adjust your function $src_w, $src_h, $dst_w and $dst_h to be your desired width/height for the source/destination

Full documentation here