Skip to content

fix: add webp to screenshot quality option allow list#7631

Merged
jschfflr merged 3 commits into
puppeteer:mainfrom
tjunnone:webp-quality-option
Oct 7, 2021
Merged

fix: add webp to screenshot quality option allow list#7631
jschfflr merged 3 commits into
puppeteer:mainfrom
tjunnone:webp-quality-option

Conversation

@tjunnone

@tjunnone tjunnone commented Oct 5, 2021

Copy link
Copy Markdown
Contributor

#7565 added webp image format support to the Page.screenshot API, but did not add webp to the list of formats that can use the "quality" option. Specifying the quality option now throws "options.quality is unsupported for the webp screenshots".

This PR allows properly passing through the screenshot quality option from Puppeteer to the browser as expected.

This allows passing through the screenshot quality option from Puppeteer to Chrome
when using the WebP image format
@google-cla google-cla Bot added the cla: yes label Oct 5, 2021

@jschfflr jschfflr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this @tjunnone!

@jschfflr jschfflr enabled auto-merge (squash) October 6, 2021 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants