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
| 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 | |
| border | Display 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
