#(Chrome Extension) Crop a screenshot to a certain element

11 messages · Page 1 of 1 (latest)

worthy lodge

I am making a chrome extension that takes a screenshot of a specific element, and I am using captureVisibleTab() to get the screenshot, problem is, this returns a image of the whole tab, and I need to crop it to a certain element, I am using getBoundingClientRect to get the size and position however these values are wrong.

dim sorrelBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
worthy lodge
fading moss

At least one true fan

SCWhehehehehe

worthy lodge

LMAO

worthy lodge

Bump

worthy lodge

Bump

fair quail

You‘re probably asking in the wrong server. This is way out of scope of Discord or NodeJS…

worthy lodge

Where could I ask

stack overflow has no answers as well