If you use the Windows platform, you can install ACA WebThumb ActiveX: http://www.acasystems.com/en/web-thumb-activex
Just a demo:
<?php // PHP html to image. // This script shows how to convert the google.com homepage to a PNG image file. $WebThumb_Maker = new COM('ACAWebThumb.ThumbMaker') or die("Start ACAWebThumb.ThumbMakerfailed"); $WebThumb_Maker->SetURL("http://www.google.com"); if ( 0 == $WebThumb_Maker->StartSnap() ) { // Tanke snapshot successful, call SetImageFile() to save the image as a PNG file. echo "Take snapshot successful." ; $WebThumb_Maker->SaveImage("google.png"); } ?>
Alex.S Aug 05 '10 at 3:29 2010-08-05 03:29
source share