UNPKG

artifyjs

Version:

Artify JS creating / manipulating images via canvas

20 lines (17 loc) 547 B
// Generate Artify Index const Artify = require('./modules/generate');; module.exports = Artify const path = require(`path`); // Function to generate an example usage const folderPath = path.join(__dirname); const exampleImage = path.join(folderPath,`modules`,`example-background.png`); const options = { width: 1080, height: 1080, text: 'China Mainland, Hong Kong & Macao', sub : `15 DAYS 3GB`, outputPath: `example.png`, bgImagePath: exampleImage, }; Artify.createImage(options,Artify); console.log(`Generate Module`);