Script or Tool to convert single page .html files to .png files

@brupp are you referring to a local html file or are you talking about taking a screenshot from a given url, but using DOpus?
For the latter, you can use the https://htmlcsstoimage.com API from DO itself. It seems promising, at least in some tests I did. (And is free for up to 50 images per month)