babysimon: (compile)
[personal profile] babysimon
Anyone ever been able to render HTML to a bitmap from the command line?

What I want to type is:

<hypothetical>
mozilla http://www.mysite.com/ -outputfile mysite.png -width 800 -height 600
</hypothetical>

Obviously Mozilla doesn't have this feature - anyone got any ideas?

Update:
I just accidentally wrote khtml2png. Currently incredibly unpolished but works. Will polish and release tomorrow, I suppose.

(no subject)

Date: 2003-08-13 10:18 am (UTC)
From: [identity profile] ciphergoth.livejournal.com
The only route I can think of involves enormous pain - use the xvfb server to run Mozilla under X, then screen grab the contents.

(no subject)

Date: 2003-08-13 01:41 pm (UTC)
From: [identity profile] hypermallard.livejournal.com
How about

html2ps (http://www.tdb.uu.se/~jan/html2ps.html) some.web.site | ps2png (http://trillian.mit.edu/~jc/sh/ps2png)

or even

html2jpg (http://marginalhacks.com/Hacks/html2jpg/)

And there's always the netpbm (http://netpbm.sourceforge.net/) utilities.

(no subject)

Date: 2003-08-13 02:14 pm (UTC)
From: [identity profile] hypermallard.livejournal.com
Heh, yeah, wasn't until after I went to sit down that I realised that the first one wasn't anything like what you wanted :-)

April 2017

S M T W T F S
      1
2345678
910 1112131415
16171819202122
23242526272829
30      

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 21st, 2026 05:07 am
Powered by Dreamwidth Studios