GithubHelp home page GithubHelp logo

ascii-art's Introduction

ASCII art

Purpose of this project is to generate ascii art in console from images.

Installation

To install the required libraries for the software run these commands on your linux:

sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-image-dev
sudo apt install libpng-dev
sudo apt install libjpeg-dev

and other if you don't have the c++ standard libraries

Compilation - make

You can compile and run the application immediately using

make run

To compile the application and generate the documentation run

make all

To generate the documentation only

make doc

To clean up software files

make clean

Usage - examples

Run the code using

./asciiart

or

make run

as mentioned earlier

Ascii image

My project can output a visual representation of the input images.

To do so just type

ascii

or

ascii filename

where filename is the path to your image. For example:

ascii examples/images/image_04.jpeg

Ascii animation

If a directory is used for the input, output is an animation of all the images in the directory. To do so just type

ascii directory_name  

where directory_name is the path to your directoryFor example:

ascii examples/images/parkour3

Show

User can see the image with applied filters To do so simply type

show

or

show filename

where filename is the path to your image. For example:

show examples/images/image_04.jpeg

About the software:

Input:

It accepts PNG and JPEG image formats.

Filters:

Conversion process is affected by filters set loaded from configuration file.

Such filters are:

  • width/heigth ratio
  • size
  • brightness
  • negative
  • convolution
  • greyscale
  • speed of animation
  • color

ascii-art's People

Contributors

ivananikin 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.