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

Screenshot command #4

Closed
dlech opened this issue Jul 31, 2017 · 4 comments
Closed

Screenshot command #4

dlech opened this issue Jul 31, 2017 · 4 comments
Assignees

Comments

@dlech
Copy link
Member

dlech commented Jul 31, 2017

It would be nice to be able to take a screenshot and upload it without using the command line.

@WasabiFan
Copy link
Member

@dlech Is there a particular way you were thinking of implementing this? Just fbgrab then download the file?

@dlech
Copy link
Member Author

dlech commented Aug 14, 2017

fbcat or fbgrab (I don't remember which) can pipe the image output to stdout, so we can actually use Device.exec() the extension and grab the stdout without having to ever create a file.

@WasabiFan
Copy link
Member

Oh, cool; I think it must be fbcat because I was looking for such an option on fbgrab earlier and couldn't find it. I'll look into this in a bit.

@WasabiFan
Copy link
Member

Transplanting from Gitter...

@dlech I was looking into the screenshot functionality last night; long story short, if we use fbcat, we get a PBM file (or PPM if you've hacked together a color display) which is obviously not ideal for a user. Would you prefer that I implement a parser+converter to generate a useful file type (would only take ten minutes to implement but would involve having a PNG or JPEG lib as a dependency) or use fbgrab and copy the file over via SSH? I think the former is cleaner but the latter involves less code on our end. Not sure which is more reliable.

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

No branches or pull requests

2 participants