I answered this question a year ago, based off an existing answer which helped me a lot.
In the meantime, my answer received 6 upvotes before the question was deleted 2 months ago.
I want to convert following HTML to PNG image in Python.
<html> <b>Bold text</b> </html>
This HTML is, of course, an example. I have tried 'pisa' but it converts html to PDF, not to image. I can convert HTML to PDF and then convert PDF to PNG, but I was wondering if there is any direct solution (i.e HTML to PNG). Any built-in or external module will work nicely.
If this can be done in Graphicsmagick or Imagemagick, then it will be perfect.
I understand that we don't like questions that ask for software recommendation. But since this Q&A now is more of a guide how to use the recommended tools than just "use this", I think it has value to future visitors.
I was close to click "undelete" on my answer, but I do not know what exactly happens then so I wanted to ask here first whether that would be a reasonable action.
For comparison, the imho clearly less useful question that is linked there in a now-deleted comment was closed and not deleted.