Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toBuffer Promise never fullfilled #510

Closed
katagaStyle opened this issue Jul 14, 2016 · 3 comments
Closed

toBuffer Promise never fullfilled #510

katagaStyle opened this issue Jul 14, 2016 · 3 comments
Labels

Comments

@katagaStyle
Copy link

let transformer = sharp()
      .rotate()
      .png()
      .toBuffer();

transformer.then( ( outputBuffer: any ) =>
{
    console.log( 'buffer' );
} );

readableStream.pipe( transformer );

The Promise will never be fullfilled. Any ideas?

@lovell
Copy link
Owner

lovell commented Jul 14, 2016

Hello, there's an example of Stream-in/Promise-out in the tests.

https://github.com/lovell/sharp/blob/master/test/unit/io.js#L81-L91

Perhaps there's an error that needs a catch?

@lovell
Copy link
Owner

lovell commented Jul 28, 2016

@katagaStyle Were you able to make any progress with this?

@lovell
Copy link
Owner

lovell commented Aug 18, 2016

Closing this as there's been no update for a while - feel free to re-open if there's more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants