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

(Server) Add optional image resizing which keeps viewport #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KBraham
Copy link

@KBraham KBraham commented Aug 10, 2021

Enables gowitness to resize captured screenshot per request for screenshot. This keeps the viewport to the original resolution when chromedp started with the original arguments. Useful for thumbnails of captured websites.

Motivation
Idea is to add width and height as optional arguments. Without these the flow follows the regular path and screenshot bytes are directly returned in the response. If arguments are given the imaging library with resizer will be used to parse the image, perform a resize and convert back to png for the response body.

Enables gowitness to resize captured screenshot per request. This keeps
the viewport to the original resolution when chromedp started.
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

Successfully merging this pull request may close these issues.

None yet

1 participant