Use gdImageScale instead of legacy ImageCopyResampled