As the end of 2015 approaches, we wanted to share a quick summary of Cloudinary’s accomplishment this year and some of our plans for next year. We couldn't possibly do this without including an image transformation example! That's our hat trick in the title :-)
Looking back at 2015
2015 was a great year for Cloudinary. We more than doubled our numbers, including our team size, offices, customers and revenues. During 2015 we’ve hit another significant milestone, crossing the eight-figures in annual run rate.
In 2015 we also released exciting new features and capabilities that our users have asked us for. Here are a few highlights:
Video management solution - All cloud-based capabilities we had for images are now available for videos as well.
Responsive images - an important challenge for web developers. While we work on multiple new solutions, this year we introduced a Javascript based solution for responsive images.
New Image transformation capabilities - face-detection based cropping with zoom level control, dynamic image distortion, automatic red eye removal, lossy animated GIF optimization, added support for FLIF - the new lossless image format, image overlay dynamic transformation, image similarity detection using pHash, and many more.
New image processing add-ons - Imagga's automatic image tagging, professional photo background removal and advanced facial attribute detection (more details coming soon).
This year, new capabilities were introduced in guest posts - introduction of Cloudinary's official Magento plugin by Grant Kemp, and responsive images with 'srcset' by Eric Portis.
Many more - interactive cropping and semantic image information in the Media Library UI, a pure Javascript library jQuery-free with new APIs, SEO friendly dynamic delivery URLs, and more.
This year for the first time, we shared some behind-the-scenes technical details and numbers. This post explains Cloudinary's bootstrapped way of organically building a profitable SaaS service. During 2015 we were also honored to add BVP (Bessemer Venture Partners) as a strategic investor. Cloudinary is BVP's 100th investment in cloud companies.
And now for a fun hat trick with image transformations
Using Cloudinary you can add overlays on top of underlying images using image transformation URLs. You can further control the look & feel of the overlays by applying multiple image transformations on them. Furthermore, you can use face detection and even eye detection for placing the overlays exactly above faces or other facial attributes (using the Advanced Facial Attributes Detection add-on). That covers everything needed to dynamically add hats to all the photos on your website or mobile application!
For example, let's take the following images that were uploaded to Cloudinary (thanks to our beloved Orly B.).
The dynamic image transformation URL below adds the Santa hat exactly above the auto detected eyes while rotating the hat to perfectly match Orly’s face. The hat is dynamically resized and padded in order to fit well as an actual hat.
cl_image_tag("profile_orly_bogler.jpg", array("transformation"=>array( array("overlay"=>"santa_hat", "effect"=>"trim"), array("gravity"=>"north_east", "width"=>"1.0", "height"=>"2.45", "crop"=>"lpad"), array("gravity"=>"adv_eyes", "flags"=>array("region_relative", "layer_apply"), "width"=>"2.8", "crop"=>"scale") )))
(new ImageTag('profile_orly_bogler.jpg')) ->overlay( Overlay::source(Source::image('santa_hat') ->transformation((new ImageTransformation()) ->reshape(Reshape::trim()) ->resize(Resize::limitPad()->width(1.0)->height(2.45)->gravity(Gravity::compass(Compass::northEast()))) ->resize(Resize::scale()->width(2.8)->regionRelative()))) ->position((new Position()) ->gravity(Gravity::focusOn(FocusOn::advancedEyes())) ));
CloudinaryImage("profile_orly_bogler.jpg").image(transformation=[ {'overlay': "santa_hat", 'effect': "trim"}, {'gravity': "north_east", 'width': "1.0", 'height': "2.45", 'crop': "lpad"}, {'gravity': "adv_eyes", 'flags': ["region_relative", "layer_apply"], 'width': "2.8", 'crop': "scale"} ])
cloudinary.url().transformation(new Transformation() .overlay(new Layer().publicId("santa_hat")).effect("trim").chain() .gravity("north_east").width(1.0).height(2.45).crop("lpad").chain() .gravity("adv_eyes").flags("region_relative", "layer_apply").width(2.8).crop("scale")).imageTag("profile_orly_bogler.jpg");
cloudinary.imageTag('profile_orly_bogler.jpg', {transformation: [ {overlay: new cloudinary.Layer().publicId("santa_hat"), effect: "trim"}, {gravity: "north_east", width: "1.0", height: "2.45", crop: "lpad"}, {gravity: "adv_eyes", flags: ["region_relative", "layer_apply"], width: "2.8", crop: "scale"} ]}).toHtml();
$.cloudinary.image("profile_orly_bogler.jpg", {transformation: [ {overlay: new cloudinary.Layer().publicId("santa_hat"), effect: "trim"}, {gravity: "north_east", width: "1.0", height: "2.45", crop: "lpad"}, {gravity: "adv_eyes", flags: ["region_relative", "layer_apply"], width: "2.8", crop: "scale"} ]})
<Image publicId="profile_orly_bogler.jpg" > <Transformation overlay="santa_hat" effect="trim" /> <Transformation gravity="north_east" width="1.0" height="2.45" crop="lpad" /> <Transformation gravity="adv_eyes" flags={["region_relative", "layer_apply"]} width="2.8" crop="scale" /> </Image>
<cld-image publicId="profile_orly_bogler.jpg" > <cld-transformation :overlay="santa_hat" effect="trim" /> <cld-transformation gravity="north_east" width="1.0" height="2.45" crop="lpad" /> <cld-transformation gravity="adv_eyes" flags={["region_relative", "layer_apply"]} width="2.8" crop="scale" /> </cld-image>
<cl-image public-id="profile_orly_bogler.jpg" > <cl-transformation overlay="santa_hat" effect="trim"> </cl-transformation> <cl-transformation gravity="north_east" width="1.0" height="2.45" crop="lpad"> </cl-transformation> <cl-transformation gravity="adv_eyes" flags={{["region_relative", "layer_apply"]}} width="2.8" crop="scale"> </cl-transformation> </cl-image>
cloudinary.Api.UrlImgUp.Transform(new Transformation() .Overlay(new Layer().PublicId("santa_hat")).Effect("trim").Chain() .Gravity("north_east").Width(1.0).Height(2.45).Crop("lpad").Chain() .Gravity("adv_eyes").Flags("region_relative", "layer_apply").Width(2.8).Crop("scale")).BuildImageTag("profile_orly_bogler.jpg")
MediaManager.get().url().transformation(new Transformation() .overlay(new Layer().publicId("santa_hat")).effect("trim").chain() .gravity("north_east").width(1.0).height(2.45).crop("lpad").chain() .gravity("adv_eyes").flags("region_relative", "layer_apply").width(2.8).crop("scale")).generate("profile_orly_bogler.jpg");
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation() .setOverlay("santa_hat").setEffect("trim").chain() .setGravity("north_east").setWidth(1.0).setHeight(2.45).setCrop("lpad").chain() .setGravity("adv_eyes").setFlags("region_relative", "layer_apply").setWidth(2.8).setCrop("scale")).generate("profile_orly_bogler.jpg")!, cloudinary: cloudinary)
An even more powerful capability is to add the same hat overlay to all the faces automatically detected in a photo. You may notice the different dimensions and rotation angles of each hat overlay that are automatically determined according to the detected position of the eyes. The example below uses similar image transformation instructions to add Santa hats to a group of Cloudinary's team taken at the AWS re:Invent conference.
cl_image_tag("cloudinary_team.jpg", array("transformation"=>array( array("overlay"=>"santa_hat", "effect"=>"trim"), array("gravity"=>"north_east", "width"=>"1.0", "height"=>"2.3", "crop"=>"lpad"), array("gravity"=>"adv_eyes", "flags"=>array("region_relative", "layer_apply"), "width"=>"2.6", "crop"=>"scale") )))
(new ImageTag('cloudinary_team.jpg')) ->overlay( Overlay::source(Source::image('santa_hat') ->transformation((new ImageTransformation()) ->reshape(Reshape::trim()) ->resize(Resize::limitPad()->width(1.0)->height(2.3)->gravity(Gravity::compass(Compass::northEast()))) ->resize(Resize::scale()->width(Expression::expression(2.6)) ->regionRelative()))) ->position((new Position()) ->gravity(Gravity::focusOn(FocusOn::advancedEyes())) ));
CloudinaryImage("cloudinary_team.jpg").image(transformation=[ {'overlay': "santa_hat", 'effect': "trim"}, {'gravity': "north_east", 'width': "1.0", 'height': "2.3", 'crop': "lpad"}, {'gravity': "adv_eyes", 'flags': ["region_relative", "layer_apply"], 'width': "2.6", 'crop': "scale"} ])
cloudinary.url().transformation(new Transformation() .overlay(new Layer().publicId("santa_hat")).effect("trim").chain() .gravity("north_east").width(1.0).height(2.3).crop("lpad").chain() .gravity("adv_eyes").flags("region_relative", "layer_apply").width(2.6).crop("scale")).imageTag("cloudinary_team.jpg");
cloudinary.imageTag('cloudinary_team.jpg', {transformation: [ {overlay: new cloudinary.Layer().publicId("santa_hat"), effect: "trim"}, {gravity: "north_east", width: "1.0", height: "2.3", crop: "lpad"}, {gravity: "adv_eyes", flags: ["region_relative", "layer_apply"], width: "2.6", crop: "scale"} ]}).toHtml();
$.cloudinary.image("cloudinary_team.jpg", {transformation: [ {overlay: new cloudinary.Layer().publicId("santa_hat"), effect: "trim"}, {gravity: "north_east", width: "1.0", height: "2.3", crop: "lpad"}, {gravity: "adv_eyes", flags: ["region_relative", "layer_apply"], width: "2.6", crop: "scale"} ]})
<Image publicId="cloudinary_team.jpg" > <Transformation overlay="santa_hat" effect="trim" /> <Transformation gravity="north_east" width="1.0" height="2.3" crop="lpad" /> <Transformation gravity="adv_eyes" flags={["region_relative", "layer_apply"]} width="2.6" crop="scale" /> </Image>
<cld-image publicId="cloudinary_team.jpg" > <cld-transformation :overlay="santa_hat" effect="trim" /> <cld-transformation gravity="north_east" width="1.0" height="2.3" crop="lpad" /> <cld-transformation gravity="adv_eyes" flags={["region_relative", "layer_apply"]} width="2.6" crop="scale" /> </cld-image>
<cl-image public-id="cloudinary_team.jpg" > <cl-transformation overlay="santa_hat" effect="trim"> </cl-transformation> <cl-transformation gravity="north_east" width="1.0" height="2.3" crop="lpad"> </cl-transformation> <cl-transformation gravity="adv_eyes" flags={{["region_relative", "layer_apply"]}} width="2.6" crop="scale"> </cl-transformation> </cl-image>
cloudinary.Api.UrlImgUp.Transform(new Transformation() .Overlay(new Layer().PublicId("santa_hat")).Effect("trim").Chain() .Gravity("north_east").Width(1.0).Height(2.3).Crop("lpad").Chain() .Gravity("adv_eyes").Flags("region_relative", "layer_apply").Width(2.6).Crop("scale")).BuildImageTag("cloudinary_team.jpg")
MediaManager.get().url().transformation(new Transformation() .overlay(new Layer().publicId("santa_hat")).effect("trim").chain() .gravity("north_east").width(1.0).height(2.3).crop("lpad").chain() .gravity("adv_eyes").flags("region_relative", "layer_apply").width(2.6).crop("scale")).generate("cloudinary_team.jpg");
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation() .setOverlay("santa_hat").setEffect("trim").chain() .setGravity("north_east").setWidth(1.0).setHeight(2.3).setCrop("lpad").chain() .setGravity("adv_eyes").setFlags("region_relative", "layer_apply").setWidth(2.6).setCrop("scale")).generate("cloudinary_team.jpg")!, cloudinary: cloudinary)
As Christmas was last week, I guess a different hat is needed. The example below uses the same technique, specifying the ID of a party_hat
instead of a santa_hat
. This should better fit the upcoming New Year celebration.
cl_image_tag("cloudinary_team.jpg", :transformation=>[ {:overlay=>"party_hat", :effect=>"trim"}, {:width=>1.4, :height=>1.0, :crop=>"scale"}, {:gravity=>"north_east", :width=>1.0, :height=>2.3, :crop=>"lpad"}, {:gravity=>"adv_eyes", :flags=>["region_relative", "layer_apply"], :width=>3.0, :crop=>"scale"} ])
cl_image_tag("cloudinary_team.jpg", array("transformation"=>array( array("overlay"=>"party_hat", "effect"=>"trim"), array("width"=>"1.4", "height"=>"1.0", "crop"=>"scale"), array("gravity"=>"north_east", "width"=>"1.0", "height"=>"2.3", "crop"=>"lpad"), array("gravity"=>"adv_eyes", "flags"=>array("region_relative", "layer_apply"), "width"=>"3.0", "crop"=>"scale") )))
(new ImageTag('cloudinary_team.jpg')) ->overlay( Overlay::source(Source::image('party_hat') ->transformation((new ImageTransformation()) ->reshape(Reshape::trim()) ->resize(Resize::scale()->width(1.4)->height(1.0)) ->resize(Resize::limitPad()->width(1.0)->height(2.3)->gravity(Gravity::compass(Compass::northEast()))) ->resize(Resize::scale()->width(3.0)->regionRelative()))) ->position((new Position()) ->gravity(Gravity::focusOn(FocusOn::advancedEyes())) ));
CloudinaryImage("cloudinary_team.jpg").image(transformation=[ {'overlay': "party_hat", 'effect': "trim"}, {'width': "1.4", 'height': "1.0", 'crop': "scale"}, {'gravity': "north_east", 'width': "1.0", 'height': "2.3", 'crop': "lpad"}, {'gravity': "adv_eyes", 'flags': ["region_relative", "layer_apply"], 'width': "3.0", 'crop': "scale"} ])
cloudinary.image("cloudinary_team.jpg", {transformation: [ {overlay: "party_hat", effect: "trim"}, {width: "1.4", height: "1.0", crop: "scale"}, {gravity: "north_east", width: "1.0", height: "2.3", crop: "lpad"}, {gravity: "adv_eyes", flags: ["region_relative", "layer_apply"], width: "3.0", crop: "scale"} ]})
cloudinary.url().transformation(new Transformation() .overlay(new Layer().publicId("party_hat")).effect("trim").chain() .width(1.4).height(1.0).crop("scale").chain() .gravity("north_east").width(1.0).height(2.3).crop("lpad").chain() .gravity("adv_eyes").flags("region_relative", "layer_apply").width(3.0).crop("scale")).imageTag("cloudinary_team.jpg");
cloudinary.imageTag('cloudinary_team.jpg', {transformation: [ {overlay: new cloudinary.Layer().publicId("party_hat"), effect: "trim"}, {width: "1.4", height: "1.0", crop: "scale"}, {gravity: "north_east", width: "1.0", height: "2.3", crop: "lpad"}, {gravity: "adv_eyes", flags: ["region_relative", "layer_apply"], width: "3.0", crop: "scale"} ]}).toHtml();
$.cloudinary.image("cloudinary_team.jpg", {transformation: [ {overlay: new cloudinary.Layer().publicId("party_hat"), effect: "trim"}, {width: "1.4", height: "1.0", crop: "scale"}, {gravity: "north_east", width: "1.0", height: "2.3", crop: "lpad"}, {gravity: "adv_eyes", flags: ["region_relative", "layer_apply"], width: "3.0", crop: "scale"} ]})
<Image publicId="cloudinary_team.jpg" > <Transformation overlay="party_hat" effect="trim" /> <Transformation width="1.4" height="1.0" crop="scale" /> <Transformation gravity="north_east" width="1.0" height="2.3" crop="lpad" /> <Transformation gravity="adv_eyes" flags={["region_relative", "layer_apply"]} width="3.0" crop="scale" /> </Image>
<cld-image publicId="cloudinary_team.jpg" > <cld-transformation :overlay="party_hat" effect="trim" /> <cld-transformation width="1.4" height="1.0" crop="scale" /> <cld-transformation gravity="north_east" width="1.0" height="2.3" crop="lpad" /> <cld-transformation gravity="adv_eyes" flags={["region_relative", "layer_apply"]} width="3.0" crop="scale" /> </cld-image>
<cl-image public-id="cloudinary_team.jpg" > <cl-transformation overlay="party_hat" effect="trim"> </cl-transformation> <cl-transformation width="1.4" height="1.0" crop="scale"> </cl-transformation> <cl-transformation gravity="north_east" width="1.0" height="2.3" crop="lpad"> </cl-transformation> <cl-transformation gravity="adv_eyes" flags={{["region_relative", "layer_apply"]}} width="3.0" crop="scale"> </cl-transformation> </cl-image>
cloudinary.Api.UrlImgUp.Transform(new Transformation() .Overlay(new Layer().PublicId("party_hat")).Effect("trim").Chain() .Width(1.4).Height(1.0).Crop("scale").Chain() .Gravity("north_east").Width(1.0).Height(2.3).Crop("lpad").Chain() .Gravity("adv_eyes").Flags("region_relative", "layer_apply").Width(3.0).Crop("scale")).BuildImageTag("cloudinary_team.jpg")
MediaManager.get().url().transformation(new Transformation() .overlay(new Layer().publicId("party_hat")).effect("trim").chain() .width(1.4).height(1.0).crop("scale").chain() .gravity("north_east").width(1.0).height(2.3).crop("lpad").chain() .gravity("adv_eyes").flags("region_relative", "layer_apply").width(3.0).crop("scale")).generate("cloudinary_team.jpg");
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation() .setOverlay("party_hat").setEffect("trim").chain() .setWidth(1.4).setHeight(1.0).setCrop("scale").chain() .setGravity("north_east").setWidth(1.0).setHeight(2.3).setCrop("lpad").chain() .setGravity("adv_eyes").setFlags("region_relative", "layer_apply").setWidth(3.0).setCrop("scale")).generate("cloudinary_team.jpg")!, cloudinary: cloudinary)
Wouldn’t this be cool to try out on all of your websites’ photos for a single day? :-)
What's next?
We’re expecting to double our team size again in 2016, so we’ll be able to both tackle all the exciting new features and products on our road-map and continue to offer our customers the best service possible.
In 2016, Cloudinary will continue to help solve the Responsive Images challenges. We’ll take our video management solution to the next level, further enhance Cloudinary's DAM solution and media search capabilities, enhance our online Media Library and strengthen integrations with existing and new development frameworks. We’ll also be adding plenty more image and video transformation & optimization capabilities.
Ever since we launched Cloudinary over 3.5 years ago, our customers’ needs were always our #1 priority. Keeping this in mind, the majority of the features we’ve added in 2015 were in a response to customer requests, so please keep the suggestions coming!
Happy New Year!