Skip to content

Commit

Permalink
fix: remove quality option when create png image (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
zenato authored May 20, 2024
1 parent b285829 commit fe0eedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/puppeteer-renderer/src/lib/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class Renderer {

const buffer = await page.screenshot({
...options,
quality: options.type === 'png' ? 0 : options.quality,
quality: options.type === 'png' ? undefined : options.quality,
})

return {
Expand Down

0 comments on commit fe0eedc

Please sign in to comment.