Giter Site home page Giter Site logo

iascii's Introduction

iASCII - Convert Images to ASCII Art with Optional Color

Introduction

iASCII is a Python-based command-line tool for converting images to ASCII art, allowing users to choose from a variety of character sets and optionally add color to the output.

Prerequisites

  • Python 3.x
  • Pillow (Python Imaging Library)
  • Requests (HTTP for Humans)
  • ansiconverter (Optional for color output)

Installation

Before running the program, you need to install the dependencies via pip:

pip install Pillow requests ansiconverter

Usage

To start the program, run the following command in your terminal:

python main.py

Upon execution, you will be prompted for:

  • URL: The link to an image you wish to convert.
  • Width: The width (in characters) of the output ASCII art.
  • Height: The height (in characters) of the output ASCII art.
  • Characters Set: The choice of character set for ASCII conversion, ranges from 1-8 with an option for a custom set (9).
  • Color: Choose whether to use color in your ASCII art.
  • Brightness: (If using color) The brightness level of the colored ASCII art.

Based on your input, iASCII will convert the selected image and display the ASCII art in the console.

The ASCII art will be saved to out.txt and the corresponding image URL, width, height, and character set used will be logged in links.txt.

Notes

  • To end the program, you may need to interrupt the loop manually by pressing Ctrl+C.
  • The colorized output uses ANSI escape codes, so ensure your terminal supports them to view the colored ASCII art properly.
  • The generated ASCII art's appearance may vary due to differences in terminal font settings and sizes.

Files Generated

  • out.txt: Contains the ASCII art generated from the last run of the program.
  • links.txt: Logs the details of each execution including the image URL and settings used.

iascii's People

Contributors

spcfork avatar

Stargazers

 avatar

Watchers

 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.