Before you move the uploaded file PHP Imagick::resizeImage. Do the movement of the file after re-sizing.
Here is the manual with some helpfull examples: http://php.net/manual/en/imagick.resizeimage.php
Best Regards!
(Please vote if this is helpful)