Back to main index

Tool Display

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

webresizerAPI.toolDisplay

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/ext1.0/js/webresizer_api.js"></script>

Tool Display Options

rotateDisplay the Rotate tool
valid values:yes, no
default value:yes
sharpen Display the Sharpen tool
valid values:yes, no
default value:yes
qualityDisplay the Image Quality tool
valid values:yes, no
default value:yes
tintDisplay the Tint tool
valid values:yes, no
default value:yes
contrastDisplay the Contrast tool
valid values:yes, no
default value:yes
exposureDisplay the Exposure tool
valid values:yes, no
default value:yes
saturationDisplay the Colour Saturation tool
valid values:yes, no
default value:yes
borderDisplay the Border tools
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.

More Advanced Features

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