jwagner / jwagner/smartcrop-sharp

Support for using a readable stream

Open
#6 2 comments 2 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
119
Forks
14
PR merge metrics
No merged PRs in 30d

Description

It might just be something to add in the docs but is there any possible way to use this as part of a transformation stream? If I wanted to implement sharp in the following way for example:

```js
const transform = sharp().rotate();
const smartcrop = smartcrop( result => {
transform.extract( result.topCrop )
} )
readableStream.pipe( smartcrop ).pipe( transform ).pipe( writableStream );
```

No worries if it's difficult / impossible to support. I'm trying to make my service a less memory intensive for large files.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.