touka-0.2.3 is not a library.
Visit the last successful build:
touka-0.3.5
Touka
画像の背景を透過するコマンドラインツールです。
This is a commandline tool for making image backgrounds transparent.
インストール方法・Installation
使い方・Usage
背景を透過したい画像をtouka
のコマンドライン引数で与えるだけで、背景を透過した画像を
output.png
として出力します。
Supply an image filepath as an argument to touka
and new version of it named
output.png
will be created with the background removed.
またオプションとして、-o
を使うことで画像の出力先のパス、-t
を使うことで白かどうかを判定するときに使うしきい値を指定できます。
Use -o
to supply a custom output name, and -t
to control the background
detection threshold.
画素値 r, g, bがすべてしきい値以上のとき、その画素を透過します。デフォルトのしきい値は230です。
When all three RGB colour values are above the threshold, that pixel will be made transparent. The default threshold is 230.