[Gllug] How to convert a webpage to an image ?

- Tethys tethys at gmail.com
Wed Jun 6 15:41:42 UTC 2007


On 6/6/07, budgester at budgester.com <budgester at budgester.com> wrote:

> So far I'm wget'ing the page, then using html2ps, but then need to
> convert the .ps to a jpg/bmp file.
>
> This is probably not the nicest way, any one got any ideas.

No, it's probably not the best way to do it, but since you've got that far,
all you need to do is:


pstopnm file.ps | cjpeg > file.jpg

or

pstopnm file.ps | ppmtobmp > file.bmp

Tet

PS. BMP? Surely something more sane like PNG (pnmtopng) would be a
better choice for a lossless image?

-- 
Perl is like vise grips. You can do anything with it but it is the
wrong tool for every job. -- Bruce Eckel
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list