ImageAlphaBlending() & imagecopyresampled() would be the two calls to make to resample the image properly. I had this issue on a different server, this is why the two other functions call I left in. More than likely the answer lies in the GD library docs:
http://us3.php.net/manual/en/ref.image.php
hope that helps.
