Stream support.
See original GitHub issueThis lib looks pretty handy, although it would be nice if we could pipe the image transformations directly to the browser with streams.
Something like this.
app.get("/my-dynamic-image", function (req, res) {
new Jimp("lenna.png", function (err, image) {
this.resize(512, 512); // resize
this.pipe(res); // Send off.
});
});
However I think that the api would be more intuative without forcing a callback into the Jimp constructor, and also making new
optional.
app.get("/my-dynamic-image", function (req, res) {
Jimp("lenna.png")
.resize(512, 512)
.pipe(res);
});
Issue Analytics
- State:
- Created 8 years ago
- Reactions:6
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Steam Support
Log in to your Steam account to get help with your Steam games, contact Steam Support, request refunds, and more. Help is also...
Read more >StreamSupport (Java Platform SE 8 ) - Oracle Help Center
Low-level utility methods for creating and manipulating streams. This class is mostly for library writers presenting stream views of data structures; ...
Read more >DIRECTV STREAM Customer Service & Support
Get support for your DIRECTV STREAM service, fix many of your issues online, and contact DIRECTV STREAM customer service.
Read more >Streams | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This can be done using buffers:
Can this be made dynamic for all files types like Jpeg, png, bmp? Like, you are using getBuffer(Jimp.MIME_JPEG,function… Can there be a generic input which can take the type of the input file?