Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
azlekov committed Apr 13, 2020
1 parent 70656d7 commit 154f36a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2,712 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,13 @@ At the end the closure must return `Buffer` from the chain of actions which will

## Advanced usage

In some cases you would need option to manipulate in parallel image or create multiple different changes on different `clones` of the image. This can be done with `sharp` and the `process` method of `ParseImae` which can return a `Sharp` instances which can be piped.
In some cases you would need option to manipulate in parallel image or create multiple different changes on different `clones` of the image. This can be done with `sharp` and the `process` method of `ParseImae` which can return a `Sharp` instances which can be piped.

```ts
const file = bucket.file("image.jpg").createWriteStream()
const image = ParseImage.from(parseFile)

...

image.process(sharp => sharp.resize(width, height)).pipe(file)
```
Loading

0 comments on commit 154f36a

Please sign in to comment.