webresizer home

webresizer - API

Advanced Integration - Optional Inclusion of Tools

Turn tools on and off ...

This section outlines the optional inclusion of tools on the webresizer tool palette.

To use the toolDisplay property you first need to create the webresizerAPI object.

For example, the below script will embed webresizer in your page without the Contrast and Colour Saturation tool.

<script type="text/javascript">

var webresizerAPI = new Object;
webresizerAPI.parameters = {
	apikey : 'your API Key here',
	language : 'en'
};
webresizerAPI.toolDisplay = {
	contrast : 'no',
	saturation : 'no'
}
</script>
<script type="text/javascript" 
src="http://api.webresizer.com/ext/js/webresizer_api.js">
</script>

Tool Display options

rotate Display the Rotate tool
  valid values yes, no
  default value yes
sharpen Display the Sharpen tool
  valid values yes, no
  default value yes
quality Display the Image Quality tool
  valid values yes, no
  default value yes
tint Display the Tint tool
  valid values yes, no
  default value yes
contrast Display the Contrast tool
  valid values yes, no
  default value yes
exposure Display the Exposure tool
  valid values yes, no
  default value yes
saturation Display the Colour Saturation tool
  valid values yes, no
  default value yes

Using the toolDisplay property of the webresizerAPI object is optional. The default values for displaying tools will be used if the property is not set.

Sending and Saving Images - how to transfer images between your server and Web Resizer

Please note each API key is unique and authenticated for use on your domain only. The API will not work if you attempt to use someone elses API key or cut and paste the demo API key ... you'll need to sign up first!

Sign Up Now
Copyright 2009 SiteSpace Australia