lunatechian (lunatech-ian)

one relating to, belonging to, or resembling lunatech

converting text files to images

This question came up in one of the mailing lists I am on -

I want to take something which is an .html file, and turn it into an image. How do I do it?

Yes, you can take a text file and convert it into an image. Please put your hand together for the swiss army knife for image manipulation - Imagemagick.

You can use the convert command (part of imagemagick package) to do this. For example, I want to convert the file mysig.txt into an image. Here is how to do it label:@mysig.txt ~/dump/mysig.png ''

For more tips on how to control the colors, font etc., check out the excellent tutorial at


Trackback specific URI for this entryTrackback URL


    • Posted bydda
    • on
    Didn't the original poster of the question meant he wanted to do the equivalent of a screenshot of the html page, once rendered...? I wonder...

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.