Is a convenience method that scales an image proportionally to twice its original size.
Image
Is a convenience method that scales an image proportionally to twice its original size.
function magnifyImage($imagePath)
{
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->magnifyImage();
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}