view images in the terminal using ansi escape codes and python
To install:
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow
python3 main.py imagePath.jpg
renders imagePath.jpg
python3 video.py videoPath.mp4
renders video then displays it with audio (long time to render, high frame rate, high memory, sometimes crashes on long files)
python3 videoLo.py videoPath.mp4
displays video without prerendering, also with audio (low frame rate)
python3 save.py imagePath.jpg outputPath.txt
saves an image in the given output file, if you cat the output file it should display correctly
returns a string of ansi escape codes and characters, if printed should display in terminal
Attempts to use true colour
passes (x, y) values ranging from 0 - 1 to getMethod
to get an image
expects getMethod
to return an rgb tuple from 0 - 255
example getMethod
def myMethod(x, y):
return (255*x, 255*y, 255-255*y)