mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 12:36:35 +00:00
Fix weird offset bug in screenshots
This commit is contained in:
parent
3ef93e28ab
commit
1f4e4b3a03
1 changed files with 3 additions and 1 deletions
|
|
@ -68,7 +68,9 @@ class Shooter {
|
|||
});
|
||||
await this._page.screenshot({
|
||||
path: screenshotPath,
|
||||
omitBackground: true // Make screenshot transparent
|
||||
omitBackground: true, // Make screenshot transparent
|
||||
// https://github.com/GoogleChrome/puppeteer/issues/703#issuecomment-366041479
|
||||
clip: { x: 0, y: 0, width: 275, height: 116 * 3 }
|
||||
});
|
||||
console.log("Wrote screenshot to", screenshotPath);
|
||||
if (minify) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue