To create a png with the transparent background:
newimage(width, height, "transparent", "png")(PECL gmagick >= Unknown)
Gmagick::newimage — 新しい画像を作成する
新しい画像を作成し、背景色を設定します。
widthheightbackgroundformatGmagick オブジェクトを返します。
エラー時に GmagickException をスローします。