Skip to content

Commit fe0eedc

Browse files
authored
fix: remove quality option when create png image (#101)
1 parent b285829 commit fe0eedc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/puppeteer-renderer/src/lib/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class Renderer {
6363

6464
const buffer = await page.screenshot({
6565
...options,
66-
quality: options.type === 'png' ? 0 : options.quality,
66+
quality: options.type === 'png' ? undefined : options.quality,
6767
})
6868

6969
return {

0 commit comments

Comments
 (0)