|0.3.5||Jan 14, 2022|
|0.3.4||Jul 17, 2021|
|0.3.3||Aug 23, 2020|
|0.2.7||Aug 11, 2020|
|0.1.0||Jun 17, 2020|
#2195 in Command line utilities
54 downloads per month
This is a commandline tool for making image backgrounds transparent.
cargo install touka
You can make an image with a transparent background by passing the image and output path as command line arguments of
touka input/image/path -o output/image/path
-t to control the background detection threshold.
touka input/image/path -o output/image/path -t 250
When all three RGB colour values are above the threshold, that pixel will be made transparent. The default threshold is 230.
Only for macOS, you can directly exchange images with the clipboard. When you don't specify an input image, the clipboard image is transparent, and when you don't specify an output path, the transparent image is saved to the clipboard.
# The clipboard image's background is transparent and saved to the clipboard. touka