I am currently writing a website which accepts user submitted links, and was interested in taking automatic screenshots of these links.
I found this post:
http://www.livejournal.com/users/brad/2015327.html
Which says to do it this way:
$ vncserver -geometry 800x800 -depth 24
$ DISPLAY=:1 mozilla-firefox -P "Screenshot" &
$ DISPLAY=:1 mozilla-firefox -P "Screenshot" -remote "openurl(javascript:window.open('http://www.livejournal.com/','','fullscreen=yes,toolbar=no,width=800,height=800'))"
$ DISPLAY=:1 import -window root -resize 200x200 lj-shot.jpg
$ eog lj-shot.jpg
I haven't yet tried it out, but does this seem like a method that would work?
Is there some better method I could use? I had mucho trouble trying to find good documentation on Firefox's command line interface.
Thanks in advance to anyone who replies!
Web Screenshots via Firefox command line under linux.
-
- Posts: 2
- Joined: December 22nd, 2004, 2:49 pm
-
- Posts: 2
- Joined: December 22nd, 2004, 2:49 pm
Or can anyone provide feedback on how hard it might be to write a plugin that can output a rendered page to an image?
I have not worked/looked at the internals of Firefox before, but it seems to be that all the data necessary to produce an image file is present "inside" Firefox, especially given the cross-platform nature of the project.
Seems like it would be a pretty useful plugin, besides my use for it.
I have not worked/looked at the internals of Firefox before, but it seems to be that all the data necessary to produce an image file is present "inside" Firefox, especially given the cross-platform nature of the project.
Seems like it would be a pretty useful plugin, besides my use for it.