Skip to content

Stable Diffusion Script to turn images into Ascii Art

License

Notifications You must be signed in to change notification settings

bigsk1/sd-ascii-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stable Diffusion Auto1111 webui Script to turn images into Ascii Art

ASCII Art Image Converter for Stable Diffusion Automatic 1111 Web UI

Example Image

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

Example Image

Stable Diffusion Automatic1111 Github repo

License

This script is open-source and free to use. For any issues or contributions, please open a GitHub issue or pull request.

Example Image

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

Example Image


Example Image


Example Image