rameshaditya / asciify Goto Github PK
View Code? Open in Web Editor NEWConvert any image into ASCII Art.
Convert any image into ASCII Art.
The idea is to allow users to stream videos in the terminal, by ascii-fying video frames as the video is playing.
SSIA.
You import from PIL but pillow isn't mentioned anywhere in the readme.
Trying convert Image 7319167558_9ac77e8a54_b.jpg to ASCII get this error
$ python asciify.py 7319167558_9ac77e8a54_b.jpg
Traceback (most recent call last):
File "asciify.py", line 86, in <module>
runner(path)
File "asciify.py", line 65, in runner
image = do(image)
File "asciify.py", line 40, in do
image = resize(image)
File "asciify.py", line 16, in resize
new_image = image.resize(new_dim)
File "/home/repodevs/.virtualenvs/asciify/local/lib/python2.7/site-packages/PIL/Image.py", line 1765, in resize
return self._new(self.im.resize(size, resample, box))
ValueError: height and width must be > 0
Add support that lets users pass URLs of images as a command line argument and the script retrievers the image and asciifies it.
The inclusion of this could give rise to more use cases such as building streaming services that stream videos on the terminal, or viewing social media from the terminal.
If you're fluent in languages other than English, feel free to submit a PR with the README file translated into your favorite language. ๐
Languages covered so far -
If you're familiar with another language, go right ahead and fork this repo and start contributing! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.