philipjscott / simple-thumbnail

A library that produces thumbnails from images, videos and URLs :mag_right:
https://www.npmjs.com/package/simple-thumbnail
MIT License
25 stars 14 forks source link

feat: Add duplex streams #48

Closed philipjscott closed 5 years ago

philipjscott commented 5 years ago

Context

Some stream APIs expect duplex stream support, such that you can create data pipelines, eg. a | b | c > d. simple-thumbnail does not provide a way to get a duplex stream.

Objective

genThumbnail(null, null, '250x?') // Returns duplex stream

Why the double nulls? To keep it consistent with the existing API.

References

Issue: https://github.com/ScottyFillups/simple-thumbnail/issues/47

philipjscott commented 5 years ago

:tada: This PR is included in version 1.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: