Halftone icon indicating copy to clipboard operation
Halftone copied to clipboard

a little advice on libraries

Open umzi2 opened this issue 1 year ago • 1 comments

For dithering, the fastest and most convenient is Chainner-rs. Examples: https://github.com/chaiNNer-org/chaiNNer/blob/main/backend/src/packages/chaiNNer_standard/image_filter/quantize/dither.py

https://github.com/umzi2/wtp_dataset_destroyer/blob/master/src/process/dithering_degr.py

https://github.com/Kim2091/helpful-scripts/blob/d413054eda3764fd04ec2c22fb3c3b6a5e61e31a/Dataset%20Destroyer/datasetDestroyer.py#L213

For halftone and screentone I recommend pepeline-rs Examples: https://github.com/umzi2/halftone_generation/blob/master/src/add_halftone.py

https://github.com/umzi2/wtp_dataset_destroyer/blob/master/src/process/screentone_degr.py

umzi2 avatar Oct 29 '24 12:10 umzi2

Thanks for suggestions! I'm currently experimenting with porting backend in Rust, as PyO3 seems a lot more stable than Gopy, so I might use these projects to build on top of them.

tfuxu avatar Nov 07 '24 20:11 tfuxu