This little command-line utility is used to capture a web page into various image file formats. It uses different Internet Explorer's rendering modes (those installed on this computer). It is also able to compute a diff image output between two rendering modes.
The reference image captured using the most recent IE installed.
The diff capture using the IE7 rendering. Only the different pixels are highlighted
The diff capture using the IE8 rendering. Only the different pixels are highlighted.
Open a command prompt as an administrator:
C:\> IEScreenCapt.exe Usage: IEScreenCapt -u=http://... [options] Options: --url | -u The URL to capture --out | -o The target file (default: %tmp%/.png) --reference | -rf The reference file (default: ) --min-width | -mw Minimal width for the image (default: 800) --max-height | -mh Maximal height to capture (default: 0) --diff | -df Generate and show the diff image (default: no) --delay | -dy Capturing delay in ms (default: 1) --silent | -s Launch IE in silent (default: yes) --debug | -dg Set the debug output (default: no)
Here is a simple BAT file:
@echo off
set url=%1
set ref="%tmp%/IECapt/%url%-edge.png"
rem you need to generate a first image wich will be used as a reference (generated only once)
rem because this will be the ref image, no need the run a diff operation
if not exist %ref% IEScreenCapt.exe -u=%url% -ie="edge" -df="no" -dg="no" -s="yes"
rem capture the url in IE7 mode, and generate a diff output using the ref image
IEScreenCapt.exe -u=%url% -ie="7" -df="yes" -rf=%ref% -dg="yes" -s="yes"
The BAT file is used as follow:
C:\> capture.bat yahoo.com
And this is the output of the debug log:
URL: yahoo.com Output: /IECapt/yahoo.com-7.png {True} Reference: /IECapt/yahoo.com-edge.png {True} Min-width: 800px Min-height: 600px Delay: 1ms Diff: True IE Mode: 7000 IE Silent Mode: True
In order to run this program, you must have the .NET 4.5 framework installed on your computer.
This "up-to-date" command line utility is based on the work of Björn Höhrmann. He is the author of IECapt. All credits go to him for his original work ^^.