dosubot[bot] commented on issue #29083:
URL: https://github.com/apache/superset/issues/29083#issuecomment-2148847837

   <!-- Greeting -->
   Hey @pritammobisoft! I'm [Dosu](https://dosu.dev), a bot here to help you 
with bug fixes, questions, and becoming a contributor. I'll assist you while we 
wait for a human maintainer.
   
   <!-- Answer -->
   The issue with the "Download As Image" option returning an empty image in 
Safari on Mac OS X is due to limitations with the `dom-to-image-more` library 
used for capturing screenshots. Safari handles canvas rendering differently 
compared to Chrome and Edge, which is why the feature works correctly in those 
browsers.
   
   To address this issue, you can consider using Playwright as an alternative 
for capturing screenshots. Playwright offers better compatibility with modern 
web standards, including Safari.
   
   You can enable the `PLAYWRIGHT_REPORTS_AND_THUMBNAILS` feature flag in 
Superset to switch from Selenium to Playwright for generating reports and 
thumbnails. This might improve the compatibility of the "Download As Image" 
feature with Safari. To enable this feature flag, add the following 
configuration to your `superset_config.py`:
   
   ```python
   FEATURE_FLAGS = {
       "PLAYWRIGHT_REPORTS_AND_THUMBNAILS": True,
   }
   ```
   
   This configuration will enable Playwright for generating reports and 
thumbnails, potentially resolving the issue with empty images in Safari 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/config.py)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset/utils/webdriver.py)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to