Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 553 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 553 Bytes

Formality-image

Reads a directory or file and creates a .fm file for each image.

Image Util: read and format format information about every pixel in an image
Parse Formality: prepares and save a .fm file formatted for Mons.Assets.

Usage

npm i
node index.js
// Runs the script in a folder
parse_dir("./moonad_img/");

// Runs the script for a single file
parse_single_image("./moonad_img/", "bush_0_z2.png");

// Rename images in a folder
Image.rename_images("./temp/big_construction/", "supermarket", 11, 8);