HTML2Image For Linux and UnixFeatures | FAQ | History |Support | Buy! | Clients
html2image can convert html to bmp, convert html to png and convert html to jpg. The URL and image file name can be specified on command line paramters, which is useful for batch processing a lot of html files. You can also call the command line program from your favourite programming languages like php or C++ in order to add html to image functionality to your server applications. You can also control the compression quality of the jpeg image by specifying the quality parameters on command line.
html2image uses the cutting-edge html to image renders which can capture html content into high quality bitmap raster image and then save it into popular web image formats like png, jpg or jpeg. If you want to support more image format, you can use the image conversion tool available in linux such as imagemagick to post processing the images like making thumbnaul image etc. An example image converted looks like this:
Normally htmli2image needs a X server to run. But you can run html2image without installing a true X11 server. Xvfb does the trick. With this cool in memory X11 server, you can run html2image without a true display. All the html loading and rendering operations will be done in memory. It will be more fast and suitable for batch html to image conversion on your servers. Still unsure about html2image linux? Download and try it to convert html to image for free!
|
||||||
Highlight Features:
Version:2.0.2007.608 Keywords:convert html to image, html to jpg, html to image, html to tiff, html to gif, html to bmp, html to png
System Requirements:Linux based OS, GTK 2, Internet connection, High color display mode. Linux kernel - 2.2.14 or higher with the following libraries or packages:
Tested on Red Hat Fedora 5 , Novell SuSE Linux 10.0, Red Hat Fedora 4, Red Hat Enterprise Linux 4 , Red Hat Enterprise Linux 3 If you system doesn't have libpangocairo, please try to install libpangocairo ( type "rpm -Uivh cairo-1.0.2-1.1.fc4.nr.i386.rpm glitz-0.4.3-1.1.fc4.nr.i386.rpm libpixman-0.1.5-1.1.fc4.nr.i386.rpm pango-1.10.3-1.1.fc4.nr.i386.rpm pango-devel-1.10.3-1.1.fc4.nr.i386.rpm" to install) If you are using Fedora Linux, You can also to use the software installation tool Yum to install those dependencies. Known Issues
Usage:1. Extract the install package to a folder. (for example, /html2image/) 2. Add the folder path to ld path for shared library. For example
3. Run html2image which is a command line tool to convert html to image. (bmp and png image format are supported currently). The following are some examples:
4. For more help, type "html2image -h" 5. You can also run html2image with Xvfb on the text mode console. In the html2image folder, run the below command:
The command can be called in batch or web CGI script files to convert url or html to image files.. How to use html2image linux on CentOS 5here is detailed example on how to use html2image linux on CentOS 5. This serves as a good example on how to use html2image. Other Linux distribution can be done similarly 1. Install CentOS. 2. Login into the server (you can use the text mode login here) 3. Enter a folder, download html2image wget http://www.guangmingsoft.net/htmlsnapshot/html2image.i386.tar.gz 4. Extract html2image tar xvzf html2image.i386.tar.gz 5. Make a symbol link for X11 ln -s /usr/share/X11 /usr/X11R6/lib/X11 You should do this to avoid the X11 error "could not open default font 'fixed'" 7. Now you can run html2image, it should work How to use html2image linux on Ubuntu 64Here is detailed example on how to use html2image linux on Ubuntu 64 bit (Ubuntu 7.10 - the Gutsy Gibbon) This serves as a good example on how to use html2image. Other 64 bit Linux distribution can be done similarly. 1. Install Ubuntu 64 2. Login into the server (you can use the text mode login here. This is suitable for headless server as well) If you are in GUI mode, Ctrl+Alt+F2 will switch you to text mode. 3. Enter a folder, download html2image wget http://www.guangmingsoft.net/htmlsnapshot/html2image.i386.tar.gz 4. Extract html2image tar xvzf html2image.i386.tar.gz 4. Install 32bit application support libraries. sudo apt-get install ia32-libs 5. Install Xvfb coming with the Ubuntu sudo apt-get install xvfb 6. Run Xvfb Xvfb :1 -screen 0 640x480x24 -nolisten tcp -audit 4 -auth X1.cfg & export DISPLAY=:1 7. Now you can run html2image, it should work Check if the a.jpg is created successfully How to use html2image linux on Fedora 8 x86_64Here is detailed example on how to use html2image linux on Fedora 8 64 bit. This serves as a good example on how to use html2image. Other 64 bit Linux distribution can be done similarly. 1. Install Fedora 8 x86_64 2. Login into the server (you can use the text mode login here. This is suitable for headless server as well) 3. Enter a folder, download html2image wget http://www.guangmingsoft.net/htmlsnapshot/html2image.i386.tar.gz 4. Extract html2image tar xvzf html2image.i386.tar.gz 5. Install Xvfb coming with the Fedora 8 su root yum install Xvfb 6. Run Xvfb Xvfb :1 -screen 0 640x480x24 -nolisten tcp -audit 4 -auth X1.cfg & export DISPLAY=:1 7. Now you can run html2image, it should work Check if the a.jpg is created successfully Use html2image linux with CGI program like php:How to use html2image Linux in php script: 1. Extract the new package to a folder (for exampe /html2image) 3. run nweb 4. You can call the web server in php script. License:The Server License costs $299.95 per site. It can be used on one Linux server. Support:If you have any questions or suggestions regards to Html Snapshot. Please feel free to email us: Guangming Software support@guangmingsoft.net or htmlsnapshot@gmail.com
FAQ:1. What image format does HTML2Image Linux support? 2. What is the runtime dependency of Html2Image? 3. Do you have source code license? History:
06/08/2007 Update: support delay before capture
|
||||||