Tech on Tour header image 2

Web Page to Image Conversion

March 21st, 2008 by drpratten · 3 Comments


Got a project that needs a bunch of images of web pages or web page thumbnails? Trying to batch convert html to jpeg or png?

I have just such a project underway and my preference was to be able to use a command similar to wget on a linux VPS (it might be called imagewget) that returns a jpeg instead of the page’s text. I figured that someone somewhere had packaged Firefox’s Gecko rendering engine into a command line app but I have been up one side of Google and down the other without any luck. If you know of such a command line tool please leave a comment!

However, back in Windows land, I am in luck. Pearl Crescent’s Page Saver Firefox plug-in is magic and can be driven from the command line. It is up-to-date with version 3 of Firefox, well documented and the basic version is free! Very user friendly. Here is a sample of how easy it is to save a web page as an image.

firefox -saveimage http://www.mozilla.com/

Done! Check it out!

Tags: Site News

3 responses so far ↓

  • 1 Alex Costa // Apr 2, 2008 at 4:33 pm

    good find. Installed on my Linux box also and the commandline also works under linux, but you do need to have the session running wih graphic interface, text only will not work!

  • 2 Rhymmenedly // Dec 19, 2008 at 10:39 pm

    Hi

    As newly registered user i only wanted to say hello to everyone else who uses this bbs :>

  • 3 GemannaAminty // Jan 8, 2009 at 2:46 am

    What is bumburbia?

Leave a Comment