Creates a new image using ImageMagick pseudo-formats.
A full list of pseudo and built-in images are available.
Note, image size is not used for all canvas types. Some have a single set size e.g. rose, logo.

A full list of pseudo and built-in images are available.
Note, image size is not used for all canvas types. Some have a single set size e.g. rose, logo.
function newPseudoImage($canvasType)
{
    $imagick = new \Imagick();
    // Some canvas types (e.g. hald, magick:rose) ignore
    // the size as they have predefined size.
    $imagick->newPseudoImage(300, 300, $canvasType);
    $imagick->setImageFormat("png");
    header("Content-Type: image/png");
    echo $imagick->getImageBlob();
}