Skip to content

A nodejs module for converting embroidery jef file into image

License

Notifications You must be signed in to change notification settings

akjabay/jef2img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs jef2img

A nodejs module for converting embroidery jef file into image

  • embroidery jef file is janome embroidery files format

Dependencies

  • canvas
  • jdataview

Installation

  $ [sudo] npm install jef2img

Usage

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' } ] }

Maintainer

asem saberi

License

MIT

About

A nodejs module for converting embroidery jef file into image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages