f2i.core
v1.0.0
Published
Converts text to image
Downloads
6
Readme
F2I Core 0.1.0 ·
File to image utility
API
You can import library to create your own projects. Just import F2I
import F2I from "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 yourpng
image file
This function returns the Promis<string>
.