Graphic Magickについて
class GM { convertAlpha() { if (!this.isPng()) { return this; } this._gm = this._gm .out('(') .out('+clone') .alpha('opaque') .fill('white') .colorize('100%') .out(')') .out('+swap') .geometry('+0+0') .compose('Over') .out('-composite') .alpha('off') ; return this; } ...
.outと.composeの意味や、そこに設定される(()や('clone')、{'Over'}が何を意味しているのかを今調べています。
gmのドキュメントは以下にあり、
https://github.com/aheckmann/gm
.outの意味については記載されていましたが、
input argument と output argumentが具体的にどういう意味なのか分かりませんでした。
この convertAlphaの全体を通したの意味も理解しきれていない状態です。
(特にcompose(over)のoverを設定することで起きうること等)
もし画像処理に詳しい方いらっしゃったらご教授頂けると幸いです。
What is your question? You should be familiar with the convert and the idenfity commands from the ImageMagick package.
あなたの回答
tips
プレビュー
