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 re-design. #8

Open
Isaak-Malers opened this issue Jul 26, 2018 · 0 comments
Open

screenshot re-design. #8

Isaak-Malers opened this issue Jul 26, 2018 · 0 comments

Comments

@Isaak-Malers
Copy link
Owner

I want to re-work how screenshots are stored:

I want to store them in a base64 encoded strings, in a JSON. Originally I wanted them as PNG's so that they were easy to view, but viewing 10000 screenshots in a directory crashes my file explorer and isn't helpful. Additionally it is more difficult for the code to auto-organize.

I think that the best way to do this is to have a JSON for every unique item in the tree. This JSON will look like:

{
  "path" : "login.username",
  "referance-into": {
      "image": "BASE64",
      "time": "timestamp",
      "left": "left margin",
      "right": "right margin",
      "top": "top margin",
      "bottom": "bottom margin"
    },
  "referance-outof": {},
  "recent": []
}
  • path is the path
  • reference-into is a reference image of the element on the page.
  • reference-outof is a referance image of the browser state AFTER the element is clicked/typed/whatever. this will match referance-into in structure.
  • recent will be an array of the same structure as referance-into of the last 10 images recorded.
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

1 participant