Skip to content

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