To create a png with the transparent background:
newimage(width, height, "transparent", "png")(PECL gmagick >= Unknown)
Gmagick::newimage — 新しい画像を作成する
新しい画像を作成し、背景色を設定します。
width新しい画像の幅。
height新しい画像の高さ。
backgroundこの画像で使う背景色 (浮動小数点数)。
format画像フォーマット。
Gmagick オブジェクトを返します。
エラー時に GmagickException をスローします。