A simple PHP function to resize images with Imagick. Several options available.