Git Product home page Git Product logo

ansigo's Introduction

AnsiGo

Description

AnsiGo is a simple ANSi to PNG converter written in pure Go. It converts files containing ANSi sequences (.ANS) into PNG images.

For a multi-format general purposes converter and library, check out Ansilove instead: https://www.ansilove.org

Features

  • ANSi (.ANS) format support
  • Small output file size (4-bit PNG)
  • 80x25 font support: IBM PC (Code page 437) charset

Installation

Build and install with the go tool:

go build ansigo
go install ansigo

Alternatively, you can easily cross-compile binaries for other systems. See the Cross-compiling AnsiGo binaries section for instructions.

Usage

AnsiGo takes the input file as parameter:

ansigo inputfile

Cross-compiling AnsiGo binaries

Building Go for the required platform:

cd /usr/local/go/
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ./make.bash
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 ./make.bash

Building Linux binaries:

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o linux/amd64/ansigo ansigo
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o linux/i386/ansigo ansigo

Building Windows binaries:

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o windows/amd64/ansigo.exe ansigo
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -o windows/i386/ansigo.exe ansigo

License

AnsiGo is released under the BSD 2-Clause license. See LICENSE file for details.

Author

AnsiGo is developed by Frederic Cambus.

Resources

GitHub: https://github.com/ansilove/ansigo

Sister project: https://www.ascii-codes.com

ansigo's People

Contributors

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