minor changes
This commit is contained in:
parent
135fd6c311
commit
b694d02f3b
2 changed files with 1 additions and 3 deletions
4
main.py
4
main.py
|
@ -50,7 +50,6 @@ def asciiTextToImage(asciiText, fontPath, cellSize, fontSize, clarityFactor):
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
|
||||||
# Example usage
|
|
||||||
# Get the current directory
|
# Get the current directory
|
||||||
currentDir = os.path.dirname(os.path.abspath(__file__))
|
currentDir = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
|
@ -62,8 +61,7 @@ os.makedirs(exportDir, exist_ok=True)
|
||||||
cellSize = (8, 8)
|
cellSize = (8, 8)
|
||||||
fontPath = 'fonts/courbd.ttf' # Specify the path to your font file
|
fontPath = 'fonts/courbd.ttf' # Specify the path to your font file
|
||||||
fontSize = 10 # font size in points
|
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
|
# Process all images in the current directory
|
||||||
for filename in os.listdir(currentDir):
|
for filename in os.listdir(currentDir):
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 4.3 MiB |
Loading…
Add table
Add a link
Reference in a new issue