1.0.0 • Published 4 years ago

f2i v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
4 years ago

F2I 1.0.0 · GitHub license npm version

File to image utility


Idea

Right now (version 0.1.0) you can only converts text to image and back again, but application contains the very simple algorithm that allows encoding files in the future. I want to realize the system like "Path to Image", what about store and share your projects in images? Sounds interesting. Ok go...

How to use?

Installation:

Do installation only global

yarn global add f2i

Encode and decode

Run f2i in the terminal and use UI application. Cli version right now in progress.


API

Recommended to use f2i.core package

You can import library to create your own projects. Just import f2i.core

import F2I from "f2i.core";

(You should install it manually with yarn add f2i.core)

Text -> Image

F2I.textToImage( text ).then( image => image.write( path ));
  • Param text - this is the text to encode
  • Param path - this is the path where image will be saved

Image -> Text

F2I.imagePathToText( path ).then(text => console.log(text));
  • Param path - this is the path to your png image file

This function returns the Promis<string>.


UI Screen

  • Save image - Saves image as file (with your text)
  • Load image - Loads image and decode the text from it

(PS: Image seems not good in the application, it's cuz of the small size of the image)

1.0.0

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago