grafana / grafana-image-renderer

A Grafana backend plugin that handles rendering of panels & dashboards to PNGs using headless browser (Chromium/Chrome)
Apache License 2.0
382 stars 155 forks source link

Enable Rendering of Transparent Panels #184

Open lux4rd0 opened 4 years ago

lux4rd0 commented 4 years ago

What would you like to be added:

When rendering panels that have the "Display panel without a background" enabled, the renderer still adds a non-transparent background.

Why is this needed:

Would be nice to have a solid black background (if using dark theme) for exported graphs. #nicetohave

Thanks!

(Screenshot)

voltages-screenshot

(Render)

voltages-render

nargetdev commented 2 years ago

I'm also very keen to see this functionality. Continuously compositing waterfall info into timelapse image stream requires an alpha channel

nargetdev commented 2 years ago

it seems like progress was made on this a while ago?

https://bugs.chromium.org/p/chromium/issues/detail?id=689349

comment 15..

The patch above adds --default-background-color=... :)
The color value should be provided as 32-bit RGBA hex
maurerle commented 1 year ago

Is this somehow possible to configure this for the whole plugin? I would love to see this!