API Parameters

Example

<script type="text/javascript">

webresizer_apikey = 'your API Key here'; 
webresizer_language = 'en';

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

Choose optional API parameters to suit your needs ...


API Parameters

webresizer_apikeyThe API key you received when you registered to use webresizer.
valid values:valid API key for your domain
default value:Must be specified
webresizer_iframe_height The minimum iframe height.
valid values:900 [min] to 4500 [max]
default value:900
webresizer_iframe_widthThe minimum iframe width.

the iframe will automatically change width to cater for the size of the uploaded image if webresizer_iframe_autosize='yes'

valid values:520 [min] to 4500 [max]
default value:520
webresizer_iframe_autosize'yes' allows the iframe to automatically resize to cater for the current size of the image.

note: page designs will need to allow for autoresizing of the embedded iframe

valid values:yes, no
default value:yes
webresizer_image_urlURL of the image to initially load into webresizer.

use this value to replace the duck

valid values:valid image URL
default value:ducky.jpg
webresizer_default_image_sizeAutomatically resize images to this width on inital upload.
valid values:5 [min] to 2000 [max]
default value:200
webresizer_allow_uploadsAllow images to be uploaded using webresizer.
valid values:yes, no
default value:yes
webresizer_allow_downloadsDisplay the download link on images.

see parameter webresizer_is_sample_image

valid values:yes, no
default value:yes
webresizer_single_image Display the optimised image only.
valid values:yes, no
default value:no
webresizer_single_lineThe image dimensions shown under the photos will appear on a single line.
valid values:yes, no
default value:no
webresizer_uplink_textText to display as the link on webresizer that allows users to transfer images to your site.

e.g. 'Save image to my gallery'

see parameter webresizer_is_sample_image

valid values:string
default value:empty string
webresizer_uplink_urlURL to call to transfer the image to your site. (i.e. the location of your callback routine)
valid values:valid URL
default value:empty string
webresizer_is_sample_imageThe intitial image in webresizer is a sample only or is to be available for saving.

e.g. 'yes' hides the link under this photo, 'no' if you want the download link or uplink_text to appear under this photo.

valid values:yes, no
default value:yes
webresizer_debug_modeTurn on debugging - useful during initial setup.
valid values:yes, no
default value:yes
webresizer_languageThe language to display the user interface in.

e.g. select 'fr' and all webresizer controls will be in French

valid values: dk, de, en, es, fi, fr, he, it, nl, no, pl, pt, ru, th

------------------

locale definitions ...

  • en : English
  • dk : Danish
  • nl : Dutch
  • fi : Finnish
  • fr : French
  • de : German
  • he : Hebrew
  • it : Italian
  • no : Norwegian
  • pt : Portuguese
  • pl : Polish
  • ru : Russian
  • es : Spanish
  • th : Thai
 default value:en

* webresizer_apikey is mandatory. All other parameters are optional.

More Advanced Features

Using Object Notation - customize the look and feel using object notation.