image-rs / imageproc

Image processing operations
MIT License
736 stars 145 forks source link

Add Dithering [Willing to do it myself] #523

Closed AntonJoha closed 1 year ago

AntonJoha commented 1 year ago

Hi,

I'm working on an ESC/POS library for Rust to use with a thermal printer. Next step in the process is to print images. The problem is that the printer can print either black or white, nothing else. I'll therefore need to implement some kind of dithering algorithm.

I could if anyone is interested then I could try to make it for this repository in the process. I don't have that much free time at the moment and is new to dithering, so it would probably take a while to complete.

willhansen commented 1 year ago

Looks like the base "image" crate already has something: https://docs.rs/image/latest/image/imageops/colorops/fn.dither.html

AntonJoha commented 1 year ago

Looks like the base "image" crate already has something: https://docs.rs/image/latest/image/imageops/colorops/fn.dither.html

Thanks for bringing this to my attention. I missed that it was already implemented.

Closing this as it's a solved issue