https://github.com/bigsk1/sd-ascii-image
Stable Diffusion Script to turn images into Ascii Art
https://github.com/bigsk1/sd-ascii-image
ascii ascii-art ascii-graphics sdxl stable-diffusion stable-diffusion-extension stable-diffusion-script stable-diffusion-webui stable-diffusion-webui-plugin
Last synced: 17 days ago
JSON representation
Stable Diffusion Script to turn images into Ascii Art
- Host: GitHub
- URL: https://github.com/bigsk1/sd-ascii-image
- Owner: bigsk1
- License: mit
- Created: 2023-09-03T12:21:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T10:31:33.000Z (about 2 years ago)
- Last Synced: 2025-09-19T17:37:05.892Z (20 days ago)
- Topics: ascii, ascii-art, ascii-graphics, sdxl, stable-diffusion, stable-diffusion-extension, stable-diffusion-script, stable-diffusion-webui, stable-diffusion-webui-plugin
- Language: Python
- Homepage:
- Size: 1.99 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Stable Diffusion Auto1111 webui Script to turn images into Ascii Art
ASCII Art Image Converter for Stable Diffusion Automatic 1111 Web UI

## Overview
This script allows you to convert images into ASCII art within the Stable Diffusion Web UI. It provides a user interface to adjust various parameters like ASCII width, letter spacing, font size, and font type. The script is designed to be used as an add-on script for the Stable Diffusion Web UI and can be found in the IMG2IMG section.
## Installation
1. Place the `asciiImage.py` script into the `stable-diffusion-webui/scripts` directory of your Stable Diffusion Web UI installation.
## Usage
1. Open the Stable Diffusion Web UI and navigate to the IMG2IMG section.
2. At the bottom of the IMG2IMG section, you'll find a dropdown for selecting scripts.
3. Select "Convert to ASCII Art Image" from the dropdown to activate the script.
4. Save the image from the web ui as they won't be saved in outputs img2img folder
5. There will be a .txt file with seed number in the outputs/img2img-images/ascii folder - you can copy and paste the ascii from .txt file
### Parameters- **ASCII Width**: Adjusts the width of the ASCII art. Range: 50-200.
- **Letter Spacing**: Adjusts the spacing between ASCII characters. Range: 0-20.
- **Font Size**: Adjusts the font size of the ASCII characters. Range: 8-48.
- **Font Type**: Allows you to select different fonts for the ASCII art. Options include "default", "Arial", "Courier New", "Times New Roman", "Comic Sans MS", and "Verdana". - these are on most windows machines already, if you don't have a certain font the default is used automatically
- **Background colors**: Select up to 20 different background colors
[Stable Diffusion Automatic1111 Github repo](https://github.com/AUTOMATIC1111/stable-diffusion-webui)## License
This script is open-source and free to use. For any issues or contributions, please open a GitHub issue or pull request.

you can find a standalone ascii art converter I made to run on linux, windows, docker and vscode devcontainer here [bigsk1 github page for airats](https://bigsk1.github.io/posts/Converting-images-to-ASCII/)

---

---
