bear-imagemin-client
v1.0.4
Published
imagemin + sharp Nodejs image processing tool
Downloads
12
Maintainers
Readme
bear-imagemin-client
bear-node-imagemin api by docker service
Support Version Map
Api Docker Image | BearImageminClient node package | ------------------|--------------------------------:| 0.0.5 | 0.0.5 |
Install
yarn add -D bear-imagemin-client
Use
import {BearImageminClient} from 'bear-imagemin-client';
const client = new BearImageminClient('http://imageSquash:3000');
client.squash('/tmp/fromPath', '/tmp/savePath', {
resize: {
width: 500,
}
})
Options
name | type | required | default | -------------|--------------------|----------|---------| quality | number | ignoreOverflowSize | boolean | | true extname | jpg, png, webp' | | webp | reszie | | | |
resize
name | type | required | default | -------------|--------------------|----------|---------| width | number | height | number |
License
MIT © imagine10255