diff --git a/index.js b/index.js index d2f9c5f..5d76b92 100644 --- a/index.js +++ b/index.js @@ -216,7 +216,7 @@ const internalCaptureWebsiteCore = async (input, options, page, browser) => { screenshotOptions.type = options.type; } - if (options.quality) { + if (typeof options.quality === 'number' && options.type && options.type !== 'png') { screenshotOptions.quality = options.quality * 100; }