converting a text file to image

Discussion in 'Python' started by jimgardener, Jun 20, 2008.

  1. jimgardener

    jimgardener Guest

    i am looking for python code to convert a textfile(.txt) to an
    image(preferrably Tiff).I believe it involves some scanning and
    conversion using some font table and probably compression using
    huffman encoding..is there an open source code doing this?can someone
    give a pointer?
    jim
     
    jimgardener, Jun 20, 2008
    #1
    1. Advertising

  2. jimgardener

    Guest

    On Jun 20, 9:15 am, jimgardener <> wrote:
    > i am looking for python code to convert a textfile(.txt) to an
    > image(preferrably Tiff).I believe it involves some scanning  and
    > conversion using some font table and probably compression using
    > huffman encoding..is there an open source code doing this?can someone
    > give a pointer?
    > jim


    Do you have a text file (toto.txt) and you want to render it as an
    image ?
    Never done that but my first thought is to use PIL (http://
    www.pythonware.com/products/pil/).

    Examples:
    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/483756
    http://blog.foozia.com/blog/2007/nov/21/rendering-text-image-using-django-template-tag
     
    , Jun 20, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andoni

    Converting Text to Image

    Andoni, Dec 18, 2003, in forum: Java
    Replies:
    3
    Views:
    1,489
    Paul Martin
    Dec 19, 2003
  2. timothy ma and constance lee

    re: java code for converting tiff image file to bmp file

    timothy ma and constance lee, Aug 26, 2007, in forum: Java
    Replies:
    4
    Views:
    745
    timothy ma and constance lee
    Aug 26, 2007
  3. Alfredo Agosti
    Replies:
    3
    Views:
    353
    Aaron Bertrand - MVP
    Sep 19, 2003
  4. Replies:
    5
    Views:
    259
  5. Kamaljeet Saini
    Replies:
    17
    Views:
    423
    Kamaljeet Saini
    Feb 4, 2009
Loading...

Share This Page