sharp-cli icon indicating copy to clipboard operation
sharp-cli copied to clipboard

Possible to add output option to buffer

Open toomanylogins opened this issue 1 year ago • 2 comments

Would it possible to add an output option to return the image in stdout rather than write a file ? Thanks

toomanylogins avatar Apr 25 '23 09:04 toomanylogins

This is already possible when you read from stdin.

cat input.jpg | sharp resize 200 > output.jpg

vseventer avatar Apr 26 '23 12:04 vseventer

Thanks for reply. I'll give it a try.

toomanylogins avatar Apr 27 '23 11:04 toomanylogins