juliangruber / capture-chrome

Capture screenshots using Chrome's new headless mode.
55 stars 18 forks source link

Adding transparency to the screenshot #27

Open cyperdark opened 4 years ago

juliangruber commented 4 years ago

Thank you for this patch!

I've tried this and didn't find a site without a white background where I could test this. What do you want this change for?

Also I noticed that with this change the height and width properties are ignored and the output will always be as large as the body element itself.

cyperdark commented 4 years ago

i use that for create png of the graph (d3js) 1695382-72_800x250-red 2129143-72_800x250-red 1031991-0_800x200-red

juliangruber commented 4 years ago

have you looked at http://bl.ocks.org/Rokotyan/0556f8facbaf344507cdc45dc3622177?

cyperdark commented 3 years ago

yeah but i use script for auto generate this charts so this method best for me