GithubHelp home page GithubHelp logo

w193241125 / asciiart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhoudaxia233/pyascii

0.0 1.0 0.0 3.33 MB

A tool for converting images or gifs or videos to ASCII

License: MIT License

Python 100.00%

asciiart's Introduction

AsciiArt

Some Amazing examples

1. A Beautiful Girl drawed by me
2. Famous Yaoming's Face
3. My Avatar


To do list

  • Asciify an image into txt & html
  • Asciify many images parallelly
  • Asciify a GIF
  • Asciify a video

Requirements

  1. Python3
  2. Pillow-5.1.0 (Only this version has been tested, other versions may also work)

Usage

./main.py avatar.png

You can use --scaling_ratio to specify the scaling ratio of the output with respect to the input image. The default value is 0.5.

./main.py avatar.png --scaling_ratio 0.1

You can use --output_format to specify the format of the output file.

0 represents for .txt format
1 represents for .html format
2 represents for both .txt format & .html format

The default value is 2.

./main.py avatar.png --output_format 1

You can use --line_height to specify the height of each line of ascii characters in the output file. The default value is 0.65.

./main.py avatar.png --line_height 0.65

You can use --font_size to specify the font size of ascii characters in the output file. The default value is 5.

./main.py avatar.png --font_size 8

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.