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

Feature request: html element screenshot (for example div) #947

Open
human211 opened this issue Aug 30, 2024 · 0 comments
Open

Feature request: html element screenshot (for example div) #947

human211 opened this issue Aug 30, 2024 · 0 comments
Labels
chromium enhancement New feature or request

Comments

@human211
Copy link

human211 commented Aug 30, 2024

The project is great!... but the only feature I miss is creating screenshots of individual elements. For example, in puppeteer I do it like this:

const page = await browser.newPage();
page.setViewport({ width: width >> 0, height: width >> 0, deviceScaleFactor: scale });
await page.setContent(content);
const body = await page.$('fieldset');
const buffer = await body.screenshot({ omitBackground: true });

I hope that it will be possible to do this here too!

@gulien gulien added enhancement New feature or request chromium labels Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chromium enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants