https://github.com/deptno/image-splitter
✄ split image from stream
https://github.com/deptno/image-splitter
Last synced: 8 months ago
JSON representation
✄ split image from stream
- Host: GitHub
- URL: https://github.com/deptno/image-splitter
- Owner: deptno
- License: mit
- Created: 2017-06-10T06:53:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-15T16:59:57.000Z (about 7 years ago)
- Last Synced: 2025-01-31T18:09:29.760Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# image-splitter
[](https://www.npmjs.com/package/image-splitter)## install
```bash
npm install --save image-splitter```
## api
> splitIfWidthBiggerThenHeight: (ext: string, stream: NodeJS.ReadableStream, rightFirst?: boolean) => Promise;
```typescript
import {splitIfWidthBiggerThenHeight} from 'image-splitter';axios({url: 'https://image.url.jpg', responseType: 'stream'})
.then(response => splitIfWidthBiggerThenHeight('.jpg', response.data));
```