It is easy to use python to convert a html file to image. In this tutorial, we will introduce you how to do.
Method 1: Use Python Selenium
Python Selenium can run a chrome browser to open a html page, then you can use it to get an image.
Here is an tutorial: