TheZoraiz / ascii-image-converter

A cross-platform command-line tool to convert images into ascii art and print them on the console. Now supports braille art!
Apache License 2.0
2.05k stars 121 forks source link

Add ability to convert any io.Reader (or maybe any image.Image) to aic_package #34

Open different55 opened 1 year ago

different55 commented 1 year ago

Having aic_package.Convert handle opening local files or fetching remote files seems like it should be out of scope for a function that's just named Convert. Having it (or another function) handle a generic io.Reader or image.Image would be hugely useful. Right now it's not really possible to use aic_package to ascii-fy an embedded or generated image, for example.

TheZoraiz commented 1 year ago

Yea, the current library support is just cli usage exposed as a package. It's definitely not as refined as it should be. I'll probably create another function that takes image.Image when I implement this.