Alpha channel handling in CLI (#23)

* Support transparent color images

* Remove unnecessary conditional

* Add temporary git url to visioncortex dependency

* Use fastrand instead of rand

* Reduce the number of random iterations when keying

* Add heuristic to avoid expensive calculations for non-transparent input

* Add three additional special keying colours

* Add transparency check to some inner pixels
This commit is contained in:
zachwolfe
2022-10-09 02:41:43 -05:00
committed by GitHub
parent 2448dbb3ba
commit a7219fd370
2 changed files with 105 additions and 3 deletions

View File

@@ -13,4 +13,5 @@ keywords = ["svg", "computer-graphics"]
[dependencies]
clap = "2.33.3"
image = "0.23.10"
visioncortex = "0.6.0"
visioncortex = { version = "0.7.0", git = "https://github.com/visioncortex/visioncortex" }
fastrand = "1.8"