-
Notifications
You must be signed in to change notification settings - Fork 974
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
How to save screen.capture.image as a png image #222
Comments
Googled "save buffer as png node.js" First three things that came up: http://stackoverflow.com/questions/6926016/nodejs-saving-a-base64-encoded-image-to-disk
Eh, maybe. http://stackoverflow.com/questions/20267939/nodejs-write-base64-image-file
Maybe again. https://www.npmjs.com/package/png
Perfect |
@demipixel ,I tried the simplest code as following, but it didn't work, could you successfully save it as a picture?
|
This is in the works. The image returned from screen.capture contains more than just the image, so just writing it to a file won't work as expected. Soon there will be a function to save it though. |
You can use the code here: |
anyway, how can I get image data from buffer? |
is this solved ? |
Can someone post information regarding how can i split images in the buffer so that i can save them individually? Is there any indication in the buffer which i can use to understand its the end of a image. |
@developer239 at first, you spammed to all participants. 2nd is it's just your job, to fight with any issue you find writing your code. Of course, that two days may be wasn't good at all, but you got some experience of what Buffer is and smth like that. If you need another functionality, just have a look for another libs (at least, i found |
That user has been blocked. The documentation does not mention saving a screen capture to a file, since it's currently not possible (or implemented). As always, I'm happy to accept PRs or collaborate. I'm extremely busy with work and screenshot saving isn't something I have a need for. |
@voteTrump2020 nice name lol. |
Sorry guys, I've deleted the comments and reported the user to GitHub. |
I'm going to lock and close this issue, I don't plan on implementing screen saving in the near future, going to focus on bugs and getting the existing functionality working as expected. This project needs collaborators, anyone interesting in helping please reach out to me. Any questions about screen saving or capturing should go in #13. Thanks! |
RT
The text was updated successfully, but these errors were encountered: