Often web developers need to create previews of web pages a good way of doing this is by creating website thumbnails. By default GrabzIt's API and Online Screenshot Tool will create website thumbnails by shrinking the screenshot until it fits within the maximum size allowed on the user's package.
However if you want to create a thumbnail image of your own size then it is recommended that the thumbnail is less than the size of the browserWidth and browserHeight parameters, 1024px and 768px respectively by default. Secondly it is important that both the width and height is kept to the same ratio of the browser width and height parameters.
This calculator automatically calculates the required width and height of your thumbnails based on what percentage you want the thumbnail to be of the browser size. While also keeping the image proportional to the browser size in order to stop any streching of the image.
For convenience any changes made with this calculator are reflected in the code examples below.
Integrate the ability to take webpage thumbnails into your application with GrabzIt's Screenshot API. To get started just choose one of the eight supported programming languages below to see a code example and further instructions.
This code example shows how easy it is to create a website thumbnail using ASP.NET. To start capturing thumbnails just download the ASP.NET Library, get your Application Key and Secret and then use the demo contained within. Then check out the screenshot API documentation for ASP.NET to find out all the ways you can use GrabzIt's API.
ImageOptions options = new ImageOptions();
options.BrowserWidth = 1024;
options.BrowserHeight = 768;
options.Width = 146;
options.Height = 195;
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToImage("http://www.google.com", string.Empty, 1024, 768, 146, 195, ImageFormat.jpg, 0, string.Empty,