-
Notifications
You must be signed in to change notification settings - Fork 314
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
Programatically tell when gif process is done #38
Comments
Hi, I am also unsure which stream will emit the right event or even what is the good stream event name on a write/read stream to listen to for end of write/read. This might even not be a good idea. What we could do is add a new option like a callback here: gifify(input, options, callback) The callback would be called when the last step exits: when "gifcicle" programs exits (https://nodejs.org/api/child_process.html#child_process_class_childprocess) If you feel like contributing (pleeeease) then shoot a PR! If you need more guidance let me know |
Hey guys; I think i have nice solution working for this. Im hooking on the 'finish' event of the writeableStream. Works great. I have just processed 600 videos with excellent results. I can make this contribution to the examples folder, i have a few ideas already to improve ouput while processing with a bit more info. Great piece of software bwt!
|
Hey there, trying to make a loop that goes through a folder of movies and converts them all, but I cant seem to figure out how to make it not start making a new gif before the last one finished.
I tried binding to the close callback on the write stream that the gifify command returns, but that doesnt seem to be all that is happening.
Loving gifify though! Any advice on this? Or way to achieve this @vvo?
The text was updated successfully, but these errors were encountered: