A small Python script that converts a GIF into an ASCII animation.
Watch a video of the script in action here.
- Load frames from a GIF.
- Convert each frame to ASCII art.
- Display the ASCII art animation in the console.
-
Clone this repository:
git clone https://github.com/oZZZXo/GIFtoASCII.git cd GIFtoASCII
-
Install the required dependencies:
pip install pillow ascii-magic
-
Place your GIF file in the project directory or provide the path to your GIF file.
-
Run the script:
python3 animate.py <gif_location> <delay_ms>
<gif_location>
: Path to the GIF file.<delay_ms>
: Optional. Delay between frames in milliseconds (default: 40ms).
python3 animate.py test.gif 0.04
This project is licensed under the MIT License.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.