fonsp / printi

🐇 Turn a receipt printer into the ~world's fastest photo printer~!
http://printi.me/
GNU General Public License v3.0
44 stars 3 forks source link

Image enhancements #16

Closed malyvsen closed 2 years ago

malyvsen commented 4 years ago

ImageToPrintCommands now accepts an array of IEnhancer - image filters to apply before dithering. I implemented two enhancers:

I'd go for calling ImageToPrintCommands with enhancers = {new QuantileEnhancer(0.5f), new HDREnhancer(0.1f, 8), new ContrastEnhancer(0.25f, 16)}.

Also! I didn't test this on the device, just made sure that pictures look nice after some enhancements and dithering.

malyvsen commented 4 years ago

Using only ContrastEnhancer seems to work better for screenshots (which do have large white areas which we don't want to gray out). Adding QuantileEnhancer with a positive arguments helps screenshots even more.

fonsp commented 2 years ago

OH NO i didn't see this until now 💔