Open 8763232 opened 2 months ago
Please fix the format of your markdown:
37 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
generated by check-issue
res, err := el.Eval(`() => window.devicePixelRatio`)
if err != nil {
return nil, err
}
devicePixelRatio, _ := strconv.Atoi(res.Value.Str())
box := shape.Box()
// TODO: proto.PageCaptureScreenshot has a Clip option, but it's buggy, so now we do in Go.
return CropImage(bin, quality,
int(box.X)*devicePixelRatio,
int(box.Y)*devicePixelRatio,
int(box.Width)*devicePixelRatio,
int(box.Height)*devicePixelRatio,
)
Could you create a test case to reproduce it?
Rod Version: v0.114.6
Need to recalculate coordinates to take screenshot correctly