Creates a new image using ImageMagick pseudo-formats.
Note, image size is not used for all canvas types. Some have a single set size e.g. rose, logo.
Note, image size is not used for all canvas types. Some have a single set size e.g. rose, logo.
Canvas type
Creates a new image using ImageMagick pseudo-formats.
Note, image size is not used for all canvas types. Some have a single set size e.g. rose, logo.
Parameters
columnsintcolumns in the new image
rowsintrows in the new image
pseudoStringstringstring containing pseudo image definition.
function newPseudoImage($canvasType)
{
    $imagick = new \Imagick();
    $imagick->newPseudoImage(300, 300, $canvasType);
    $imagick->setImageFormat("png");
    header("Content-Type: image/png");
    echo $imagick->getImageBlob();
}