GitHub user dosubot[bot] added a comment to the discussion: Deck.gl map change
style directly on dashboard
<!-- Answer -->
To enhance PDF image quality when exporting with Playwright in Superset,
configure the WebDriver settings in your `superset_config.py` or
`superset_config_docker.py` file with the following options:
```python
WEBDRIVER_OPTION_ARGS = [
"--force-device-scale-factor=2.0",
"--high-dpi-support=2.0",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-extensions"
]
```
Additionally, set the `WEBDRIVER_WINDOW` configuration to include a
`pixel_density` setting for improved image quality:
```python
WEBDRIVER_WINDOW = {
"pixel_density": 2.0,
"width": 1920,
"height": 1080,
}
```
These configurations will increase the device scale factor and pixel density to
2.0, enhancing the quality of images in the exported PDFs
<sup>[[1]](https://github.com/apache/superset/discussions/31432)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great
Response](https://app.dosu.dev/response-feedback/94397e18-8729-47a2-9dfa-b98a33d13e3c?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/94397e18-8729-47a2-9dfa-b98a33d13e3c?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/94397e18-8729-47a2-9dfa-b98a33d13e3c?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/94397e18-8729-47a2-9dfa-b98a33d13e3c?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/94397e18-8729-47a2-9dfa-b98a33d13e3c?feedback_type=hallucination)
| [Bug
Report](https://app.dosu.dev/response-feedback/94397e18-8729-47a2-9dfa-b98a33d13e3c?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/94397e18-8729-47a2-9dfa-b98a33d13e3c?feedback_type=other)</sup>
GitHub link:
https://github.com/apache/superset/discussions/32149#discussioncomment-13131081
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]