Is there any sort of utility I can use to convert an image to ASCII and then print it in my terminal? I looked for one but couldn't seem to find any.
相关问题
- Views base64 encoded blob in HTML with PHP
- How to get the background from multiple images by
- CV2 Image Error: error: (-215:Assertion failed) !s
- Replace image attributes for lazyload plugin on im
- How to display an image represented by three matri
相关文章
- Use savefig in Python with string and iterative in
- Where does this quality loss on Images come from?
- Specifying image dimensions in HTML vs CSS for pag
- How to insert pictures into each individual bar in
- Emacs/xterm color annoyance on Linux
- How do I append metadata to an image in Matlab?
- Img url to dataurl using JavaScript
- Click an image, get coordinates
Another alternative is to use the Ipython notebook: it is pretty good at doing what you ask for.
For bash: You have to prepend commands with a bang. For images: You may use the rich display system from ipython.
A screenshot of the result:
Complete answer in this post.
A program called cacaview allows you to do this.
It is interactive, allowing you to pan, zoom, and change display modes.
(Full size image)
more simply, you may use
img2txt
from the caca library (cacaview
is an image browser and opens a new window, which is not what is asked here I guess);For instance :
$ img2txt /Users/foo/pool/libs/ipython/docs/resources/ipynb_icon_256x256.png
$
on macosx, you may use homebrew :
(imlib is used to convert from different formats)
Try using the Google-Ninja before asking! I found cacaview and aview.
Here's a utility that does this (with source code):
http://www.codeproject.com/Articles/10949/ASCII-Art-Generator
A high quality fast standalone conversion utility (provided you have a 256 color terminal) is
pxl
, available at https://github.com/ichinaski/pxl.