Skip to content

Value of clip.scale is always reset to 1 for page.screenshot #5329

@whimboo

Description

@whimboo

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 2.0
  • Platform / OS version: MacOS 10.14
  • URLs (if applicable):
  • Node.js version: 12.1.0

What steps will reproduce the problem?
Using the clip option for page.screenshot with a scale of non 1 like:

Please include code that reproduces the issue.

  await page.screenshot({path: 'screenshot.png', clip: { x: 100, y: 100, width: 400, height: 400, scale: 2 }});

What is the expected result?
Scaling factor gets correctly forwarded to Chrome.

What happens instead?
Value is reset to 1 here:

return {x, y, width, height, scale: 1};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy