Although this is happening to me too, if i use a jpeg with large white areas.
The result does contain grey atrifacts rgb(255,255,254), where only white rgb(255,255,255) should be.
Inverting the image before resizing and inverting it back to normal does fix the issue for me.
A similar issue described here: http://stackoverflow.com/questions/23993901/imagecopyresampled-introduces-artifacts-in-transparent-png
Although this is happening to me too, if i use a jpeg with large white areas. The result does contain grey atrifacts rgb(255,255,254), where only white rgb(255,255,255) should be.
Inverting the image before resizing and inverting it back to normal does fix the issue for me.