title: Python Convert HTML Image to PNG
body: <p>Given a saved HTML file with an image (<a href="http://bokeh.pydata.org/en/latest/docs/gallery/texas.html" rel="noreferrer">an output from Bokeh</a>), how can I save it as a PNG file with a DPI of 300?</p>
  
  <p>I found some answers to similar questions, but they don't seem to work for me. I think I need someone to explain the whole process (importing the needed package, where it needs to be located if applicable, and how to call it). </p>
  
  <p>I've tried this after pip installing webkit2png:</p>
  
  <pre><code>import os
  os.system("webkit2png" "texas.html")
  </code></pre>
  
  <p>I've also tried:</p>
  
  <pre><code>import subprocess
  subprocess.call("webkit2png", "texas.html")
  </code></pre>
  
  <p>Thanks in advance!</p>