minor changes

This commit is contained in:
Achille 2024-07-04 22:13:48 +02:00
parent 135fd6c311
commit b694d02f3b
2 changed files with 1 additions and 3 deletions

View file

@ -50,7 +50,6 @@ def asciiTextToImage(asciiText, fontPath, cellSize, fontSize, clarityFactor):
return image
# Example usage
# Get the current directory
currentDir = os.path.dirname(os.path.abspath(__file__))
@ -62,8 +61,7 @@ os.makedirs(exportDir, exist_ok=True)
cellSize = (8, 8)
fontPath = 'fonts/courbd.ttf' # Specify the path to your font file
fontSize = 10 # font size in points
clarityFactor = 8
clarityFactor = 8 # Increase this value to improve the clarity of the ASCII art
# Process all images in the current directory
for filename in os.listdir(currentDir):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 4.3 MiB

Before After
Before After