Skip to content

adri326/rexpaintjs-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rexpaintjs-render

Renders rexpaintjs-fork Images into canvas images.

Installation

Install this module by running:

npm install --save adri326/rexpaintjs-render

Then, import the node module:

const render = require('rexpaintjs-render');

You can then quickly convert your Images into Image instances with the imported render method:

const fs = require("fs");

let buffer = fs.readFileSync("your_file.xp");
rexpaint(buffer, (err, data) => {
  if (err) {
    throw new Error(err);
  }
  data.render({output: "your_file.png"}); // writes the image to `your_file.png`!
});

About

Renders rexpaintjs-fork images into jimp images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published