A nodejs module for converting embroidery jef file into image
- embroidery jef file is janome embroidery files format
- canvas
- jdataview
$ [sudo] npm install jef2img
var path = require('path');
const jef2img = require('jef2img');
var input = __dirname + '/test.jef';
jef2img.setOptions({
type: 'image/png', // image/png or image/jpeg, default image/png
outputdir: __dirname + path.sep + 'output', // output folder, default null (if null given, then it will create folder name same as file name)
outputname: 'test', // output file name, dafault null (if null given, then it will create image name same as input name)
});
jef2img.convert(input, function(err, info) {
if (err) console.log(err)
else console.log(info);
});
It will return converted image file.
{ result: 'success',
message:
[ { name: 'test.jpeg',
size: 22.78,
path: '/output/test.jpeg' } ] }
MIT