Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ScreenshotOptions): adds screenshot type & quality options #29

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

Asheboy
Copy link
Contributor

@Asheboy Asheboy commented Dec 6, 2019

This adds the ability to pass type & quality options through to page.screenshot, as detailed https://pptr.dev/#?product=Puppeteer&version=v1.20.0&show=api-pagescreenshotoptions.

Quality confirmed by ImageMagick's identify: identify -verbose 1.jpg.

@Asheboy Asheboy changed the title feat(Timesnap): adds screenshot type & quality options feat(ScreenshotOptions): adds screenshot type & quality options Dec 7, 2019
@tungs tungs changed the base branch from master to jpg-support January 10, 2020 20:32
@tungs tungs merged commit 4ba7f41 into tungs:jpg-support Jan 10, 2020
@tungs
Copy link
Owner

tungs commented Jan 10, 2020

Looks like very good and useful feature! I'll take a look at it this weekend to autodetect format based on file extension and also add support for jpg canvas capturing

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