You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove quality and optimizeForSpeed from the main options object and allow them to be passed to Puppeteer's Page.screenshot(), along with other options, like so:
Because quality and optimizeForSpeed options are specific to image generation and are not used for any other purpose in the generation code, it makes sense to remove them from the main options object. Allowing arbitrary options to be passed will give user's more flexibility in case they need to customize the behavior of Page.screenshot() for their use case.
Options important for correct behavior of the plugin like path, clip and type should overwrite user-provided options.
The text was updated successfully, but these errors were encountered:
Remove
quality
andoptimizeForSpeed
from the main options object and allow them to be passed to Puppeteer'sPage.screenshot()
, along with other options, like so:Because
quality
andoptimizeForSpeed
options are specific to image generation and are not used for any other purpose in the generation code, it makes sense to remove them from the main options object. Allowing arbitrary options to be passed will give user's more flexibility in case they need to customize the behavior ofPage.screenshot()
for their use case.Options important for correct behavior of the plugin like
path
,clip
andtype
should overwrite user-provided options.The text was updated successfully, but these errors were encountered: