Archive for March, 2008

How to run html2image linux on Ubuntu64

Saturday, March 8th, 2008

Here 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 [...]

convert html to image with htmlsnapshot in php

Saturday, March 1st, 2008

Here are a more complete examples of using htmlsnapshot to convert html to image with php on Windows.
Note the following things:
1. You copy/paste the below code into test.php and run on command line
   php.exe test.php
 2. Yon can see it uses GetErrorCode to handle errors to make your code more robust.
<?php
$url = “http://google.com/“;
$path = “.\\”;
$img = “1.jpg”;
$timg [...]