function magnifyImage($image_path /*, string $magnify_type*/)
{
$imagick = new \Imagick(realpath($image_path));
// This doesn't appear to work
// if ($magnify_type !== "default") {
// $imagick->setOption("magnify:method", $magnify_type);
// }
$imagick->magnifyImage();
header("Content-Type: image/jpeg");
echo $imagick->getImageBlob();
}