Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 1.45 KB

README.md

File metadata and controls

70 lines (46 loc) · 1.45 KB

ASCII Art Generator is a Python script that converts images or GIFs into ASCII art or vice versa. It utilizes the PIL library for image processing and ASCII art generation.

Features

  • Convert images to ASCII art
  • Convert GIFs to ASCII art
  • Convert ASCII art back to images
  • Convert ASCII art to GIF animations

Requirements

  • Python 3.x
  • PIL (Python Imaging Library)
  • imageio
  • tqdm

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/ascii-art-generator.git
  2. Navigate to the project directory:

    cd ascii-art-generator
  3. Install the required Python packages:

    pip install -r requirements.txt

Usage

  1. Run the main.py script:

    python main.py
  2. Choose the desired conversion option (image or GIF).

  3. Select the file(s) you want to convert using the file dialog.

  4. Follow the prompts to specify conversion parameters such as scale factor and font size.

  5. Optionally, choose whether to save the result to a file.

Examples

Converting an Image to ASCII Art

python main.py

Choose option 1 for image conversion, select the image file, and follow the prompts.

Converting a GIF to ASCII Art

python main.py

Choose option 2 for GIF conversion, select the GIF file, and follow the prompts.

License

This project is licensed under the MIT License. See the [MIT License](MIT License) file for details.