Project Description
A simple command line HTML to PNG (JPEG) converter written in C# .NET 2.0.

Notes
  • Pure .NET 2.0
  • Supports JavaScript
  • Uses Internet Explorer to render HTML
  • No CSS3 nor HTML5

Usage
Usage:
  html2png <options> [input.html] [output.png]

Options:
  --width=<int>   Capture area and image width in pixels
  --height=<int>  Capture area and image height in pixels

Examples:
  html2png test.html
  html2png test.html test.png
  html2png http://www.example.com
  html2png --width=1920 --height=1080 test.html test.png


Examples
Click on links below to view some samples:
html2png.codeplex.com - with arguments --width=1280 --height=1024
qrcode.good-survey.com - this website does not support IE below version 7
www.google.com - automatically detected width and height

Last edited Sep 30, 2011 at 2:23 PM by Avivo, version 3