To create a png with the transparent background:
newimage(width, height, "transparent", "png")(PECL gmagick >= Unknown)
Gmagick::newimage — Creates a new image
Creates a new image with the specified background color.
widthheightbackgroundformatThe Gmagick object.
Throws an GmagickException on error.