title: Printing Hard Copy Images With Python
body: <p>I have seen some topics about this but nothing with a direct answer that I want. I have this script below but it prints out text not images.</p>
  <pre><code>import os
  import tempfile
  
  filename = tempfile.mktemp(&quot;.txt&quot;)
  open (filename , &quot;w&quot;).write (&quot;dellow&quot;)
  
  os.startfile(filename, &quot;print&quot;)
  </code></pre>
  <p>Is there anyway to modify this code to print out an image instead of text? Or even create an entirely new script. Just anything that works is fine.</p>
  <p>(The image is a simple PNG of my profile picture)</p>