Web (Beta)
The Web SDK provides the same pre-built components used in our Web app to power your application.
Last updated
The Web SDK provides the same pre-built components used in our Web app to power your application.
Last updated
This is still in beta and you may encounter limitations. We encourage you to provide feedback via our support channels.
To install the SDK into your application is as simple as adding a script tag and providing your API key as an attribute in the HTML.
To add the Autoenhance uploader into your application, you simply add our image-uploader
Web component
Now when the page has loaded you should see automatically the Autoenhance uploader. Your code should now look something like this:
To specify that of the form filed sent to your server containing the order_id, then just provide a name
attribute just like you would with any input field
To specify that it's required to upload images to Autoenhance then just provide a required
attribute just like you would with any input field
You can control the default enhancement settings sent to Autoenhance by providing a preferences
attrbiute containing JSON in the same format documented in our Reprocessing documentation
For example to specify the API version
There are two ways for your application to react to the user uploading an order with the image uploader.
If your image uploader is contained within a form, the Order ID for the Autoenhance Order will be submitted along side the rest of your form's data. Your server can then use this ID to communicate with the Autoenhance API to retrieve it's status and download the images.
You can use event listeners to listen to the files-added
, completed
and error
events, in order to updae your applications UI state in response to a user's interaction with the uploader.
Here is an example
You can specify a specific version of the SDK according to the rules documented here
You can see some example projects which demonstrate how to use the Web SDK