dosubot[bot] commented on issue #31906: URL: https://github.com/apache/superset/issues/31906#issuecomment-2598608704
<!-- Answer --> The 'Save as Image' functionality works for Charts but not for Dashboards because they rely on different backend classes for making screenshots. Specifically, the `ChartScreenshot` class is used for charts, while the `DashboardScreenshot` class is used for dashboards. These classes have different configurations and implementations, which might lead to discrepancies in functionality. The `ChartScreenshot` class captures charts in a standalone mode with specific window and thumbnail sizes, whereas the `DashboardScreenshot` class captures dashboards with different default sizes and includes a `dashboard_state` parameter in its cache key. This additional complexity in the `DashboardScreenshot` class could contribute to the issues you're experiencing with the 'Save as Image' feature for dashboards <sup>[[1]](https://github.com/apache/superset/blob/master/superset/utils/screenshots.py)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/tests/integration_tests/thumbnails_tests.py)</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/bcae1dc6-1847-4986-ab4a-32f3abd416cd?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/bcae1dc6-1847-4986-ab4a-32f3abd416cd?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/bcae1dc6-1847-4986-ab4a-32f3abd416cd?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/bcae1dc6-1847-4986-ab4a-32f3abd416cd?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/bcae1dc6-1847-4986-ab4a-32f3abd416cd?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/bcae1dc6-1847-4986-ab4a-32f3abd416cd?feedback_type=other)</sup> -- 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]
