Back to main index

Sending Images to the API

Images are sent to webresizer with the API parameter image_url.

The following code will open fred.jpg in webresizer for editing.

<script type="text/javascript">
 
var webresizerAPI = new Object;
webresizerAPI.parameters = {
	apikey : 'your API Key here',
	image_url : 'http://www.example.com/fred.jpg'
};

</script>
<script type="text/javascript"
src="http://api.webresizer.com/ext1.0/js/webresizer_api.js"></script>

The examples on this page use Object Notation, but Quick Start parameters may also be used if preferred.

  • images can be sent to the API from any domain: image_url does not need to be the same as the domain your key is registered for.
  • the default behaviour is that any image sent is a sample only and the download link will automatically appear only after a user uploads an image. To force the link to save images to appear you can set parameter is_sample_image='no'.

More Advanced Features

Saving Images - creating a callback routine to transfer images to your server