[Ilugc] screenshot amongst other things

  • From: rajasuperman@xxxxxxxxx (Raja Subramanian)
  • Date: Mon May 15 12:05:07 2006

Hi,

On 5/15/06, Arvind Ashok <aashok.indiana@xxxxxxxxx> wrote:

I need a way to convert email(s) from text or HTML or whatever format
it is in into an image which is a screenshot of what a human would see
of the image. email file --> image file

Run your files through html2ps (check your distro for the pkgs).  Batch
convert ps files to whatever raster format you require using gimp.  Note
that you need to convert your emails to pure html (convert email headers
such as from/to/cc/subject/etc. to html) before using html2ps.


If html2ps does not produce good output, here are a few more things
to try out:

Load the text/html into a HTML widget of your choice, and call xwd
to save the screenshot to disk.  Pretty easy using tcl/tk's html widget.

Use a GUI testing tool such as Perl's X11:GUITest
    http://www.perl.com/pub/a/2006/02/02/x11_gui_testing.html
and automate your key strokes.  Load your emails into mozilla or
whatever and fire away.

Unlike html2ps, this still leaves you with the problem when the entire
text is not visible on screen and scrolling is necessary.

- Raja

Other related posts: