Hi vince!
FWIW, html-to-image
is only about 13kb. It has no sub dependencies, and is treeshakable, so it will ship a pretty small amount of code overall. That being said, if you wanted to do it today, with what we have in extensions, one option that comes to mind is the `Page.captureScreenshot` portion of `chrome.debugger`. I don't have a specific code sample for it, but it would likely look like
```
const screenshot = await chrome.debugger.sendCommand(debuggee, "Page.captureScreenshot", {
format: "jpeg",
quality: 80,
clip: { x: 0, y: 0, width: screen.width, height: screen.height, scale: 1},
fromSurface: true,
captureBeyondViewport: true,
optimizeForSpeed: false
})
```
`debuggee` would be a tabId that you can get from chrome.tabs.