image-splitter
v0.0.5
Published
## install
Downloads
3
Readme
image-splitter
install
npm install --save image-splitter
api
splitIfWidthBiggerThenHeight: (ext: string, stream: NodeJS.ReadableStream, rightFirst?: boolean) => Promise<NodeJS.ReadableStream[]>;
import {splitIfWidthBiggerThenHeight} from 'image-splitter';
axios({url: 'https://image.url.jpg', responseType: 'stream'})
.then(response => splitIfWidthBiggerThenHeight('.jpg', response.data));