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

Machine Readable Output #1

Open
freb opened this issue Dec 7, 2022 · 0 comments
Open

Machine Readable Output #1

freb opened this issue Dec 7, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@freb
Copy link
Contributor

freb commented Dec 7, 2022

For ingestion by other tools we need to create an output option that is machine readable. This will obviously be some type of json with base64 encoded values for the rendered pages.

There is only one problem, you will then either need to store both html and json versions of the output or you need a way to serve up the json file(s). We probably want to support multiple outputs and service json files.

It would be convenient if Chrome allowed you to access the json file from the HTML file, then we could just output a wrapper HTML file that could be opened directly. This is possible, but is disabled by default in Chrome. The real solution is to run a small web server with httpscreenshot. It woudl really just read in all the json and then spit it all back out in a propert HTML file that can be viewed. The nice thing about this method is it makes any future improvements to the HTML file formatting (like grouping similar images, filtering, searching, etc.) available when viewing older json files.

@freb freb added the enhancement New feature or request label Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant