Coder Social home page Coder Social logo

bigsk1 / sd-ascii-image Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 2.03 MB

Stable Diffusion Script to turn images into Ascii Art

License: MIT License

Python 100.00%
ascii ascii-art ascii-graphics sdxl stable-diffusion stable-diffusion-extension stable-diffusion-webui stable-diffusion-webui-plugin stable-diffusion-script

sd-ascii-image's Introduction

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

sd-ascii-image's People

Contributors

bigsk1 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.