Over 33,008,214 images resized

Parameters

The chapter about the file input showed you the most basic use of the Resize Any Image API.

You can extend its functionality by adding extra parameters to your form, like this:


Note that there is no comma after the last parameter. Older versions of Internet Exporer are very particular about this.

Here is a list of available parameters:


parameter value default description
account_key string   Your account key. You can find this on your account page.
callback_function string   Javascript function to call after the resizer is finished.
demo_mode true or false false Force demo mode, even if you have a full account. This for development purposes: when testing your resizer in demo mode your images will not count towards your limit. In demo mode the result images will have DEMO written over them.
maximum_width integer 2000 The maximum width of the resized image, in pixels.
maximum_height integer 2000 The maximum height of the resized image, in pixels.
minimum_width integer 10 The minimum width of the resized image, in pixels.
minimum_height integer 10 The minimum height of the resized image, in pixels.
  NOTE: if the maximum and minimum size are equal the resulting image has a fixed size. The user can then only crop his uploaded image.
resizer_url URL http://YOUR.WEBSITE/resizer.html Full URL to the location of the resizer HTML file on your server.
start_selection_top integer   Initial value for the top of the resizer selection.
start_selection_left integer   Initial value for the left of the resizer selection.
start_selection_width integer   Initial value for the width of the resizer selection.
start_selection_height integer   Initial value for the height of the resizer selection.
start_page_no integer 1 Initial layer to use in multilayer images.
start_rotate 0, 90, 180 or 270 0 Initial rotation value for the image in the resizer.
start_zoom integer   Initial zoom factor for the image in the resizer. 1000 is 100%.
original_image_url URL   Instead of asking the user to upload an image the image provided here is used. This way a user can re-crop a previously uploaded image.
allow_selection_outside_image true or false false Allows the user to drag the borders of the new image past the borders of the uploaded image