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