We love developers! We have made integrating with the Elasticera Image Transformation Service incredibly easy. Frequently customers have completed the integration and gone live in less than a day.
There are two points of integration
Uploading an image
A webservice is used to upload an image. We provide example code for the most common programming languages, e.g. PHP, Ruby, Python, C#, Java, Perl, etc., so it couldn't be easier to upload an image.
To upload an image...
Add the following fields to an existing table or create a new database table to hold them
Use one of our example libraries to upload images.
Example PHP code to upload an image
<?php require_once 'ITS_Upload.php'; $its = new ITS_upload(); $its->upload($url, $user, $password, $file, $params); if($its->getStatus() == 200) list($reference, $width, $height) = explode(" ", $its->getBody()); ?>
Update the appropriate record within the database table with reference, width and height.
Generating an image URL
When using the Elasticera Image Transformation Service the commands to transform an image are passed in the URL. For example
You can write your own code to generate image URLs or use one of the example libraries we provide. We provide example libraries for the most common programming languages, e.g. PHP, Ruby, Python, C#, Java, Perl, etc., so it couldn't be easier.
Example PHP code to generate an image URL
<?php require_once 'ITS_URL.php'; $url = new ITS_URL(); $url->setServer('images.mysite.com'); $url->setReference('NexTUmvuchVSXe7Y3ThHidh9lGcj'); # Optional transformations, e.g. $url->setWidth(500); $url->setFormat('jpg'); echo $url->generateURL(); ?>
It's that simple!