Skip to content

StaticImageExport: Allow to use a local browser, instead of BrowserFetcher #264

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

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

dobretzberger
Copy link
Contributor

With the current implementation, there is always the BrowserFetcher called when exporting an image.
This is a problem when the library is used e.g. in some environment with limited access to the Internet, because chromium is downloaded at least once.

I added an option to set a localBrowserExecutablePath in the PuppeteerSharpRendererOptions.
If that options set, fetchAndLaunchBrowserAsync uses that path. Otherwise it calls the BrowserFetcher and and does the already known stuff.

…nd avoid downloading if a local path is given.
@kMutagene
Copy link
Collaborator

Thank you, this makes a lot of sense

@kMutagene kMutagene merged commit 5da1b8b into plotly:dev Feb 7, 2022
@dobretzberger dobretzberger deleted the imageexport-localbrowser branch February 14, 2022 14:48
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