title: HTML to IMAGE using Python
body: <p>Here is a variable <strong>html_str</strong>, it is a string that contains html tags and contents in body.
  I am created a <strong>.html</strong> file from this string using the below code in python.</p>
  
  <pre><code>html_file = open("filename.html", "w")
  html_file.write(html_str)
  html_file.close()
  </code></pre>
  
  <p>now i got html file named file "<strong>filename.html</strong>". Now <strong>i want to convert that "filename.html" to a image</strong>, named filename.jpg with the exact contents of the html file.
  please help me.</p>