Giter Club home page Giter Club logo

ascii_py's Introduction

Ascii Py

Makin some pictures

Install instructions

Using pip

python3 -m pip install ascii_py

From source

git clone https://github.com/profoak/ascii_py
cd ascii_py
python3 setup.py install

Usage

usage: ascii_py [-h] [-o OUT] [-w WORDS] [-s STEP] [-d] [-t] input_file

positional arguments:
  input_file            Input file to convert from.

optional arguments:
  -h, --help            show this help message and exit
  -o OUT, --out OUT     The filename you want your final image saved as.
  -w WORDS, --words WORDS
                        Use words to create your image.
  -s STEP, --step STEP  Choose the distance of your characters.
  -d, --density         Adding the flag converts the image based on visual density.
  -t, --terminal        Print ascii image to terminal.

Example images

Original image:

Default usage:

Density flag:

Terminal flag (screenshot):

Other flags usage example:

$ ascii_py -s 10 -w "dank memes" -o ayy_lmao_pizza.jpg Media/pizza_in.jpg

ascii_py's People

Contributors

abhikpal avatar gnoxter avatar john-science avatar profoak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ascii_py's Issues

"$ python ascii_py ... " is not working

Hi!

I have downloaded this project using git clone (my pip couldn't install project), but it didn't work in $ python ascii_py...-way, it caused mistake

"there is no main in module."

It started work only when I removed all code from ascii.py to main.py and used it in
$ python ascii_py/main.py ...-way.
`
Did I do something wrong, or project contains mistake at current moment?

Use tool name on the cli

I think I could use this tool calling ascii_py instead of main.py.

Setuptools can be used to solve this issue. And i'll give a bonus that it can be installed via a package manager like pip or can be ported to OSes package managers easier.

use

root@kali:~/ascii_py/ascii_py# python3 main.py -t 1.jpg
Traceback (most recent call last):
File "main.py", line 2, in
from .ascii import Ascii
SystemError: Parent module '' not loaded, cannot perform relative import

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.