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

Passing in a Readable stream to gifify does not work in node #93

Open
lobabob opened this issue Apr 3, 2017 · 1 comment
Open

Passing in a Readable stream to gifify does not work in node #93

lobabob opened this issue Apr 3, 2017 · 1 comment

Comments

@lobabob
Copy link

lobabob commented Apr 3, 2017

If I do

outputFileStream = fs.createWriteStream('out.gif');
gifify('blah.gif', { ... }).pipe(outputFileStream);

it works, but if I do

inputFileStream = fs.createReadStream('blah.gif');
outputFileStream = fs.createWriteStream('out.gif');
gifify(inputFileStream, { ... }).pipe(outputFileStream);

it fails with the following

Error: Uncaught, unspecified "error" event. (convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/501.
convert: no images defined `gif:-' @ error/convert.c/ConvertImageCommand/3210.
)
    at Socket.emit (events.js:163:17)
    at Socket.gotSomeErrors (/home/farhan/projects/ReverseGifRedditBot/node_modules/gifify/index.js:53:23)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:551:20)
@vvo
Copy link
Owner

vvo commented Apr 3, 2017

Have a look at the other issues: https://github.com/vvo/gifify/search?q=no+decode+delegate+for+this+image&type=Issues&utf8=%E2%9C%93

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

No branches or pull requests

2 participants