Scan for Snapmatic images in a source directory, convert them into JPEG format and place them into the destination source.
You can install it as a global NPM package:
$ sudo npm install -g snapmatic-converter
Or you can install it locally to a project:
$ npm install snapmatic-converter --save
$ snapmatic-converter <source-dir> <destination-dir>
Also you can use as an usual module:
import { SnapConverter } from 'snapmatic-converter';
const snapToJpg = new SnapConverter('srcdir','dstdir')
snapToJpg.convertAllFiles()
snapToJpg.processSingleFile('PGTA51876361281')
snapToJpg.convertSomeFiles(['PGTA52078400596','PGTA51370982198','PGTA5916100621'])
If you're using this software from NPM, it's already tested. You can pass the tests with mocha
:
$ sudo npm install -g typescript@latest
$ npm install
$ npm test
If you want to contribute to this project please don't hesitate to send a pull request. You can also open new issues to ask questions and participate in discussions.
This program is free software; you can redistribute it and/or modify it under the terms of the MIT license. Find more information about this on the LICENSE file.
$ sudo npm install -g typescript@latest
$ npm install
$ npm publish
- @manuasir (author)
- @jesusgn90 (contributor)