HTML Snapshot ActiveX Component

Features |  FAQ | History | Manual | Support | Buy! | Clients | Samples

Do you ever want to take a screen shot of a web page in your desktop or web application? Html Snapshot can capture the whole web page as JPG, BMP, PNG, TIFF and GIF image on the fly. Add "Html to image" or "html to jpg" feature to your application now!

HTML Snapshot ActiveX can download and parse web sites and save a screenshot of the page in GIF, JPG, JPEG, BMP, PNG, TIFF, WMF and EMF. You can choose to capture the entire page, or a thumbnail image of a specified size, and save it to a local folder.

Not only html files, the plain text files as well as the Web Archive Format (*.MHT) files can be converted to image with HTML Snapshot easily, too.

HTML Snapshot can allow you to batch process URLs from a text file and automatically parse a large number of sites. HTML Snapshot is a standard COM DLL server, allowing you to generate a thumbnail via query string from your web browser. This is one of the best HTML to image converters.

HTML Snapshot can capture web pages with flash movie without problem. Check out the snapshot of macromedia.com. Get interested?

Free Download & Try Now . No functionality limitation except watermarks in the generated image for the unregistered version.
Buy Now. Remove the watermarks. $149.95 For Single Developer License. $299.95 For Developer Team License.

 

You may want to control the compression quality of JPEG or change the compression method of TIFF image. No worry. Html Snapshot has done these for you. For TIFF, you can easily get images ready for Windows FAX Service.

With Html Snapshot, you can build thumbshot server for millions of web pages easily. You have full control of the database yourself. And Html Snapshot is especially suitable to be used on server side. It works well on Windows 2000 Server, Windows 2003 Server and can be used with popular server side script languages like ASP, ASP.Net, PHP and Perl etc. No need to pay monthly subscription fee for thumbshot service providers now!

Html Snapshot can convert the VML - the Vector Markup Language to image. VML markup can be embeded in html files so it can be converted just like "html to jpg".

HTML Snapshot ActiveX Component can take (capture) a whole snapshot of a given URL. It downloads web page and then capture it as image. It can be easily integrated into applications written in languages that support ActiveX Component such as Visual C++, Visual Basic, Delphi, C++ Builder, .Net languages,  Java, Scripts like Perl, Php, Python.

Here is the snapshot of this page captured by HTML Snapshot.

If you are looking for the programs, such as convert html to image, html image, html2image, html to image, htm2img, htm to img, html2gif, html to gif, html2jpg, html to jpg, html2jpeg, html to jpeg, html2bmp, html to bmp, html2png, html to png, html2tiff, html to tiff, software to convert html to image, this is the best of all. HTML Snapshot works with all Windows version with Internet Explorer 5.0 or above and with Internet Connection. It is a program without any hassle to install. Just save it to your desktop and run our demos.

Sometimes, you may want to convert 24 bit color bitmap file to gif file, which only supports 256 colors. Html Snapshot provides function to effectively reduce the color in image while keeping the quality of the image as much as possible.

 

My fellow programmers, don't spend your precious time to reinvent the wheel now. Get Html Snapshot for ONLY $149.95 NOW!  Then you can easily add the "Html to jpeg" function to your web or desktop applications. You can call it from your favorite development tools. Many working examples are supplied. Just have a look at them, you will find html snapshot is so easy to use.

Note: If you are looking for an application that converts html to image. Please try Html To Image
News: Html Snapshot is upgraded to 2.1. This version adds a bunch of new methods for advanced usage.
News: Html2image for linux is released. You can convert html to image easily on your linux servers.

Testimonials

"The Best Program Of Its Kind On The Market!"

This component is convenient for use with good price and compact size for html to image and html to jpg functionalties.
     Jae

Nice features - we can script on the fly to convert html to image. And it handles multiple image types, etc. This is the only software we could find that currently does this html to jpeg conversion, plus we can script it. 
     Beverly

Unsure? Unconvinced? I understand. We'll also throw in FREE tech support

But if you're still not sure, try it out for FREE in your applications to convert html to image NOW.

We are committed to improving Html Snapshot Component constantly. See History

We have also posted a series of tutorial articles to help you use html snapshot. Feel free to read it.

Html Snapshot Sample in Windev
Html To Image: GetImageBytes method

Redistribute html to image
Multithreaded Html to Image
html to fax with html snapshot

Convert html to image in IIS
Html To Image Command Line version
short note on GetBitmapHandle
Another html to image note
One html to image note

Highlight Features:

  • Directly save the web page at a given URL into image in bmp, jpeg, tiff, gif or png format. (i.e. html to image, html to jpg, html to image, html to tiff, html to png etc)
  • Directly convert html string to images.
  • Directly convert MHT web archive to image in bmp, jpeg, tiff, gif or png format
  • Support saving the whole html page to image without scrollbars.
  • Create thumbnail images from large images.
  • Get links, title, cookie or html source of a page
  • Get the html document DOM interface
  • Make gray or black and white images
  • Reduce color number in images while keeping better quality.
  • Support compressing images into jpg, tiff, gif or png in memory without temporary files created.
  • Support JPEG compression level and TIFF compression method selection
  • Convert vector graphics WMF, EMF, SVG and VML to bmp, jpg, jpeg, tiff, gif or png
  • Convert html to vector image format like EMF and WMF
  • Convert html to transparent GIF
  • Convert html to image with an existing webbrowser control
  • Examples in VC, Delphi, VB, VB.Net, C#, ASP, ASP.Net, PHP, Perl, Python, Cold Fusion, PowerBuilder, FoxPro, Windev, VB and Java script as well as Java are provided.

Version:

2.1.2006.922

Keywords:

convert html to image, html to jpg, html to image, html to tiff, html to gif, html to bmp, html to png
text to image, text to jpg, mht to image, mht to jpg, html2image, convert invoice to image, html to fax, fax tiff,
vml to jpg, vml to image, vml to png, vml to tiff, render vml to image, vml rendering, convert text to image, convert web page to image, convert html to WMF, c# web page capture

System Requirements:

Windows Platform, Internet Explorer 5 above, Internet connection, High color display mode.

Methods:

SnapUrl(String strUrl, String strPicFile);

Description: the main function to convert html to image

strUrl: The URL of the web page to be taken snapshot.

strPicFile: The local image file to be saved. It should be a valid file name. For example, c:\1.jpg or c:\1.bmp etc. Currently the component supports jpg, bmp, gif, tiff and png format. It will convert html to image in the format given by the file extension. 
For advanced users:
If you don't want to save the image to file, set strPicFile to "*". For example,

snap.SnapUrl("www.example.com", "*")
Handle hBmp = snap.GetBitmapHandle()
You can get the bitmap handle in memory when the html is successfully converted to image.

SnapHtmlString(String strHtml, String strPicFile);

Description:

strUrl: A html string

strPicFile: The local image file to be saved.

GetThumbnailImage(String strInputFile, String strOutputFile, Long cx, Long cy, Long bRemainRatio)

Description:

strInputFile : The input image file

strOutputFile : The thumbnail image file to be saved

cx, cy : The dimension of the thumbnail image.

bRemainRatio: If bRemainRation is 0, the thumbnail image will be exactly the size of cx, cy; else then remain the original image's aspect ratio.

ReduceColor(String strInputFile, String strOutputFile, Long nColors)

Description: Reduce the color number in input image. nColors is in [8-256].

MakeGrayImage(String strInputFile, String strOutputFile, Long bGrayOrBW)

Description: convert a color image to gray or black white only. If bGrayOrBW = 0 then, the result image is black white only, else it is gray.

SetCode(String strCode)

Description:

strCode : Set the registration code to eliminate the limitation in trial version.

SetTimeOut(Long nTimeOut)

Description:

nTimeOut : The time out value in milliseconds for SnapUrl. Using this to avoid hang. The default TimeOut value is 30000

SetDelayTime(Long nDelayTime)

Description:

nDelayTime: The time value in milliseconds to wait after  a html document is downloaded. Sometimes, a page contains ActiveX like flash, which takes some time to initialize. This method can be used to control the timing to capture the content of the dynamic embeded objects. Default nDelayTime value is 1000.

SetAsync(BOOL bAsync)

Description:

bAsync : If set to True, SnapUrl function will work asynchronously, which means it will return immediately without waiting for the results. Application can use the event to determine if the operation is done. If set to False, SnapUrl will wait until the operation is done or the time is out.

EnableActiveX(BOOL bEnable)

Description:

bEnable : Determine if ActiveX is enabled on the html page

EnableJava(BOOL bEnable)

Description:

bEnable : Determine if Java is enabled on the html page

EnableScript(BOOL bEnable)

Description:

bEnable : Determine if Script is enabled on the html page

SetSnapDimension(long cx, long cy)

Description: Set the width and height of the web browser window. The browser window size will affect the html document size in some way.

EnableSnapDimensionAsImageSize(BOOL bVal)

Description: Force the captured image size to be the dimension set by SetSnapDimension. If the dimension is larger than that of the html document, the gap will be filled with background color of the page. The default value is FALSE.

SetPostData(String postData)

Description: Set the data to be posted to the URL. Use this function for some urls protected by forms.

SetJPEGQuality (long n)

Description: Set the quality of JPEG Compression. n is between 0 and 100

SetDither(long n)

Description: Set the dither method when converting to 1bpp image. 0: None; 1: Floyd dithering; 2:Ordered dithering

SetTIFFEncoder(long n)

Description: Set the compression method of TIFF image. 0: LZW; 1: CCITT3; 2:CCITT4; 3: RLE; 5: None.

SetThreshold(long n)

Description: Set the threshold value (0-255) when converting image to monochrome. 

StringArray GetLinks