private function initImage($image)
    {
        if(is_string($image))
        {
            return new Imagick($image);
        }
        elseif ($image instanceof Imagick)
        {
            return $image;
        }
        else
        {
            throw new Exception('Image input must be Imagick object or string path ('.gettype($image).' sent)');
        }
    }
private function initImage($image)
    {
        if(is_string($image))
        {
            return new Imagick($image);
        }
        elseif ($image instanceof Imagick)
        {
            return $image;
        }
        else
        {
            throw new Exception('Image input must be Imagick object or string path ('.gettype($image).' sent)');
        }
    }
private function initImage ( $ image ) { if ( is_string ( $ image ) ) { return new Imagick ( $ image ) ; } elseif ( $ image instanceof Imagick ) { return $ image ; } else { throw new Exception ( 'Image input must be Imagick object or string path (' . gettype ( $ image ) . ' sent)' ) ; } }
Check if parameter is Imagick object, if not load from string file path

@param  Imagick|string  $image
@return Imagick
Check if parameter is Imagick object if not load from string file path