0.0.2 • Published 5 years ago
geometrizejs-extra v0.0.2
geometrizejs-extra
Extra (High level APIs) for geometrizejs.
Features
- JPG, PNG, TIFF, GIF, BMP input formats
- SVG, JSON, JPEG, PNG output formats
- optimized SVG ouptut
- ImageRunner steps iteration implementation
- API to control the steps iteration
Install
npm install geometrizejs-extra
Usage
import {Geometrize} from 'geometrizejs-extra'
const job = new Geometrize({
input: 'test/assets/bluebells.jpg',
output: 'tmp/formUrl.svg',
shapeTypes: [ShapeTypes.TRIANGLE],
iterations: 1000,
onFinish: result => {
},
onStep: step => {
}
})
const r = await job.start()
Options
Related Projects
- geometrizejs (the library in which this tool is based)
- geometrize-haxe (the original library from which geometrizejs is built from)
- geometrizejs-cli (provides CLI using this library)
- magica
mujer provides SVG optimization tools
TODO
- magica to more formats ?
- input from url
- document src/options.ts
- options in readme
- browser tests
- readme TOC
- node.js tests
- svg optimizer
- use svg-to-png-converter to render bitmap formats
0.0.2
5 years ago