Code Monkey home page Code Monkey logo

image2springbanner's Introduction

image2springbanner

Small tool written in Java to convert images to spring-boot banner text resource.

Credits

Almost all the code comes from the Spring Boot PR by Craig Burke. When the PR is available in a Spring Boot release (probably 1.4), this project will no longer be of interest.

Get it

Pre-built jar

Click here to download.

From source

Clone the project then in the project dir enter :

mvn package

The jar will be in the target directory

Usage

usage: java -jar image2springbanner.jar <IMAGE_FILE> [-c] [-d] [-M <arg>]
       [-o <arg>] [-r <arg>]
Create a Spring Boot banner from an image
 -c,--cie94                whether to use CIE94 algo (default is false)
 -d,--dark                 whether to invert image for a dark background.
                           (default is false)
 -M,--max-width <arg>      maximum width in characters of banner (default
                           is 72)
 -o,--output <arg>         output file path (default is ./banner.txt)
 -r,--aspect-ratio <arg>   correction to makes sure height is correct to
                           accomodate the fact that fonts are taller than
                           they are wide. (default is 0.5)

Example :

java -jar image2springbanner.jar src/main/resources/banner.jpg -M140 -d -o src/main/resources/banner.txt

image2springbanner's People

Contributors

cbornet avatar

Stargazers

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

Watchers

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