ionutrogojan / ppan_image

ppan image format, encoder and decoder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PPAN Image Format

About

First attempt of encoding and decoding ASCII art from an image file to console using binary strings and hexadecimal conversion


Quick Start

import PPAN from "./lib/ppan.ts";

const binary = "0001100000111100011111101101101111111111001001000101101010100101";
const ppan = new PPAN();

ppan.encode(binary, "./img/test.ppan");

ppan.decode("./img/test.ppan"); // alien

// Version 0.1.1

// run using: deno run --allow-read --allow-write main.ts

/* Output:

░░░░░░████░░░░░░
░░░░████████░░░░
░░████████████░░
████░░████░░████
████████████████
░░░░██░░░░██░░░░
░░██░░████░░██░░
██░░██░░░░██░░██
*/

Useful Links and Documentation

About

ppan image format, encoder and decoder

License:GNU General Public License v2.0


Languages

Language:TypeScript 100.0%