A cross-platform package to replace curses (mouse/keyboard input & text colours/positioning) and create ASCII animations
81
Build a Python script that converts image files to greyscale ASCII art and displays them in the terminal.
The script should:
@generates
def convert_image_to_ascii(image_path: str, max_width: int = 80) -> str:
"""
Convert an image file to greyscale ASCII art.
Args:
image_path: Path to the image file
max_width: Maximum width of the output in characters (default: 80)
Returns:
String containing the ASCII art representation with newline characters
Raises:
FileNotFoundError: If image file doesn't exist
"""
passProvides image to ASCII conversion functionality.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-asciimaticsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10