Cloudinary Blog

Cloudinary’s most popular image processing add-ons

Our most popular add-ons and how to utilize them

Perhaps some of you readers that have been around for a while remember our add-ons launch 2 years back, when we introduced a number of third party image processing products, fully integrated into the Cloudinary image management pipeline. Since then our add-ons marketplace has grown, both in our offerings and in usage. We now have 11 add-ons offering various capabilities and improvements.

I decided to take a peek and see which of our add-ons are most frequently used and popular amongst our customers.

Webinar
Marketing Without Barriers Through Dynamic Asset Management

Advanced Facial Attribute Detection

Firstly, we have our Advanced Facial Attribute Detection add-on. The ‘Face API' of Microsoft's Cognitive Services allows you to accurately and automatically detect eyes, nose and other facial attributes in your photos. An in depth blog post describing this powerful add-on is coming up in the next couple of weeks, so stay tuned :)

For example:

Ruby:
Copy to clipboard
cl_image_tag("cloudinary_team.jpg", :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"},
  {:width=>500, :crop=>"scale"}
  ])
PHP v1:
Copy to clipboard
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"),
  array("width"=>500, "crop"=>"scale")
  )))
PHP v2:
Copy to clipboard
(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()))))
    ->resize(Resize::scale()->width(500));
Python:
Copy to clipboard
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"},
  {'width': 500, 'crop': "scale"}
  ])
Node.js:
Copy to clipboard
cloudinary.image("cloudinary_team.jpg", {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"},
  {width: 500, crop: "scale"}
  ]})
Java:
Copy to clipboard
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").chain()
  .width(500).crop("scale")).imageTag("cloudinary_team.jpg");
JS:
Copy to clipboard
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"},
  {width: 500, crop: "scale"}
  ]}).toHtml();
jQuery:
Copy to clipboard
$.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"},
  {width: 500, crop: "scale"}
  ]})
React:
Copy to clipboard
<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" />
  <Transformation width="500" crop="scale" />
</Image>
Vue.js:
Copy to clipboard
<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-transformation width="500" crop="scale" />
</cld-image>
Angular:
Copy to clipboard
<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-transformation width="500" crop="scale">
  </cl-transformation>
</cl-image>
.NET:
Copy to clipboard
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").Chain()
  .Width(500).Crop("scale")).BuildImageTag("cloudinary_team.jpg")
Android:
Copy to clipboard
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").chain()
  .width(500).crop("scale")).generate("cloudinary_team.jpg");
iOS:
Copy to clipboard
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").chain()
  .setWidth(500).setCrop("scale")).generate("cloudinary_team.jpg")!, cloudinary: cloudinary)
Image with hat overlay automatically placed above all faces detected

JPEGmini

Our second most popular add-on, the JPEGmini image optimization add-on, is an add-on that helps reduce the file size of your photos by up to 5x, while keeping their original quality and JPEG format. Any Cloudinary image manipulation can be chained as well of course. When using the JPEGmini add-on, your images will be automatically optimized using advanced visual algorithms achieving maximum file size reduction while maintaining a very high visual quality. This seems like a no-brainer to me - who wouldn’t want their images automatically optimized in such a manner?? You can also read more about this add-on in this blog post.

For example:

Ruby:
Copy to clipboard
cl_image_tag("tomatoes_cooking.jpg", :quality=>"jpegmini:2", :width=>500, :crop=>"scale")
PHP v1:
Copy to clipboard
cl_image_tag("tomatoes_cooking.jpg", array("quality"=>"jpegmini:2", "width"=>500, "crop"=>"scale"))
PHP v2:
Copy to clipboard
(new ImageTag('tomatoes_cooking.jpg'))
  ->resize(Resize::scale()->width(500))
  ->delivery(Delivery::quality(Quality::jpegminiMedium()));
Python:
Copy to clipboard
CloudinaryImage("tomatoes_cooking.jpg").image(quality="jpegmini:2", width=500, crop="scale")
Node.js:
Copy to clipboard
cloudinary.image("tomatoes_cooking.jpg", {quality: "jpegmini:2", width: 500, crop: "scale"})
Java:
Copy to clipboard
cloudinary.url().transformation(new Transformation().quality("jpegmini:2").width(500).crop("scale")).imageTag("tomatoes_cooking.jpg");
JS:
Copy to clipboard
cloudinary.imageTag('tomatoes_cooking.jpg', {quality: "jpegmini:2", width: 500, crop: "scale"}).toHtml();
jQuery:
Copy to clipboard
$.cloudinary.image("tomatoes_cooking.jpg", {quality: "jpegmini:2", width: 500, crop: "scale"})
React:
Copy to clipboard
<Image publicId="tomatoes_cooking.jpg" >
  <Transformation quality="jpegmini:2" width="500" crop="scale" />
</Image>
Vue.js:
Copy to clipboard
<cld-image publicId="tomatoes_cooking.jpg" >
  <cld-transformation quality="jpegmini:2" width="500" crop="scale" />
</cld-image>
Angular:
Copy to clipboard
<cl-image public-id="tomatoes_cooking.jpg" >
  <cl-transformation quality="jpegmini:2" width="500" crop="scale">
  </cl-transformation>
</cl-image>
.NET:
Copy to clipboard
cloudinary.Api.UrlImgUp.Transform(new Transformation().Quality("jpegmini:2").Width(500).Crop("scale")).BuildImageTag("tomatoes_cooking.jpg")
Android:
Copy to clipboard
MediaManager.get().url().transformation(new Transformation().quality("jpegmini:2").width(500).crop("scale")).generate("tomatoes_cooking.jpg");
iOS:
Copy to clipboard
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setQuality("jpegmini:2").setWidth(500).setCrop("scale")).generate("tomatoes_cooking.jpg")!, cloudinary: cloudinary)
Image automatically optimized with JPEGmini add-on

Imagga crop & scale

Imagga's crop & scale smart cropping technology automatically chooses the most visually appealing parts of your images and crops them accordingly, extending Cloudinary's powerful cropping capabilities with automatic cropping that is not only based on detected faces. When using the Imagga add-on, your images will be scaled and cropped based on automatically calculated areas of interest within each specific photo. This add-on was also described in this blog post.

For example:

  • Original image:
    Original image
  • Imagga scaled:
    Ruby:
    Copy to clipboard
    cl_image_tag("/dog_field.jpg", :height=>200, :width=>400, :crop=>"imagga_scale")
    PHP v1:
    Copy to clipboard
    cl_image_tag("/dog_field.jpg", array("height"=>200, "width"=>400, "crop"=>"imagga_scale"))
    PHP v2:
    Copy to clipboard
    (new ImageTag('/dog_field.jpg'))
      ->resize(Resize::imaggaScale()->width(400)->height(200));
    Python:
    Copy to clipboard
    CloudinaryImage("/dog_field.jpg").image(height=200, width=400, crop="imagga_scale")
    Node.js:
    Copy to clipboard
    cloudinary.image("/dog_field.jpg", {height: 200, width: 400, crop: "imagga_scale"})
    Java:
    Copy to clipboard
    cloudinary.url().transformation(new Transformation().height(200).width(400).crop("imagga_scale")).imageTag("/dog_field.jpg");
    JS:
    Copy to clipboard
    cloudinary.imageTag('/dog_field.jpg', {height: 200, width: 400, crop: "imagga_scale"}).toHtml();
    jQuery:
    Copy to clipboard
    $.cloudinary.image("/dog_field.jpg", {height: 200, width: 400, crop: "imagga_scale"})
    React:
    Copy to clipboard
    <Image publicId="/dog_field.jpg" >
      <Transformation height="200" width="400" crop="imagga_scale" />
    </Image>
    Vue.js:
    Copy to clipboard
    <cld-image publicId="/dog_field.jpg" >
      <cld-transformation height="200" width="400" crop="imagga_scale" />
    </cld-image>
    Angular:
    Copy to clipboard
    <cl-image public-id="/dog_field.jpg" >
      <cl-transformation height="200" width="400" crop="imagga_scale">
      </cl-transformation>
    </cl-image>
    .NET:
    Copy to clipboard
    cloudinary.Api.UrlImgUp.Transform(new Transformation().Height(200).Width(400).Crop("imagga_scale")).BuildImageTag("/dog_field.jpg")
    Android:
    Copy to clipboard
    MediaManager.get().url().transformation(new Transformation().height(200).width(400).crop("imagga_scale")).generate("/dog_field.jpg");
    iOS:
    Copy to clipboard
    imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setHeight(200).setWidth(400).setCrop("imagga_scale")).generate("/dog_field.jpg")!, cloudinary: cloudinary)
    Image automatically scaled with Imagga add-on

Imagga auto tagging

The Imagga auto tagging add-on automatically categorizes and tags images, according to the categories detected in each image. The Imagga add-on can automatically tell you what's in a photo by returning a list of detected categories and the confidence score for each of them. User uploaded images can now be fully categorized automatically! You can read more about it in this great blog post.

Other cool add-ons

Although the add-ons described above are statistically of the highest usage amongst our customers, there are a few more that are so useful and cool, I had to highlight them as well:

VIESUS image enhancement

The VIESUS image enhancement add-on does just that, enhancing the visual quality of your photos, automatically adjusting brightness and color, restoring sharpness, removing noise and correcting for overexposure or underexposure. We speak in length about it here.

For example:

  • Original image:
    Original image
  • VIESUS enhanced:
    Ruby:
    Copy to clipboard
    cl_image_tag("beach_day.jpg", :effect=>"viesus_correct", :width=>400, :crop=>"scale")
    PHP v1:
    Copy to clipboard
    cl_image_tag("beach_day.jpg", array("effect"=>"viesus_correct", "width"=>400, "crop"=>"scale"))
    PHP v2:
    Copy to clipboard
    (new ImageTag('beach_day.jpg'))
      ->resize(Resize::scale()->width(400))
      ->adjust(Adjust::viesusCorrect());
    Python:
    Copy to clipboard
    CloudinaryImage("beach_day.jpg").image(effect="viesus_correct", width=400, crop="scale")
    Node.js:
    Copy to clipboard
    cloudinary.image("beach_day.jpg", {effect: "viesus_correct", width: 400, crop: "scale"})
    Java:
    Copy to clipboard
    cloudinary.url().transformation(new Transformation().effect("viesus_correct").width(400).crop("scale")).imageTag("beach_day.jpg");
    JS:
    Copy to clipboard
    cloudinary.imageTag('beach_day.jpg', {effect: "viesus_correct", width: 400, crop: "scale"}).toHtml();
    jQuery:
    Copy to clipboard
    $.cloudinary.image("beach_day.jpg", {effect: "viesus_correct", width: 400, crop: "scale"})
    React:
    Copy to clipboard
    <Image publicId="beach_day.jpg" >
      <Transformation effect="viesus_correct" width="400" crop="scale" />
    </Image>
    Vue.js:
    Copy to clipboard
    <cld-image publicId="beach_day.jpg" >
      <cld-transformation effect="viesus_correct" width="400" crop="scale" />
    </cld-image>
    Angular:
    Copy to clipboard
    <cl-image public-id="beach_day.jpg" >
      <cl-transformation effect="viesus_correct" width="400" crop="scale">
      </cl-transformation>
    </cl-image>
    .NET:
    Copy to clipboard
    cloudinary.Api.UrlImgUp.Transform(new Transformation().Effect("viesus_correct").Width(400).Crop("scale")).BuildImageTag("beach_day.jpg")
    Android:
    Copy to clipboard
    MediaManager.get().url().transformation(new Transformation().effect("viesus_correct").width(400).crop("scale")).generate("beach_day.jpg");
    iOS:
    Copy to clipboard
    imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setEffect("viesus_correct").setWidth(400).setCrop("scale")).generate("beach_day.jpg")!, cloudinary: cloudinary)
    Image automatically enhanced with VIESUS add-on

WebPurify

WebPurify image moderation comes in handy in various user generated content sites, by automatically moderating all photos uploaded to your application, thus preventing adult-oriented and inappropriate images from creeping into your websites or mobile applications. Custom moderation profiles can also be defined with our assistance, making sure that whatever images you don’t want appearing on your website - will be automatically screened out. You can read more about this add-on here.

Remove The Background

Remove The Background editing add-on automatically removes any background from your photos, resulting in a transparent-background image focusing only on the main object within your photo. This is especially common in e-commerce, media, and news sites in order to place the main element of the image on either white or color backgrounds. The final result better integrates an image into a site or specific page’s graphic design. This blog post describes this add-on in detail.

Which add-ons are your favorite? Are there any additional add-ons you wish we had? We would love to get your feedback and thoughts!

Recent Blog Posts

Create Lightweight Sites With Low-Code and No-Code Technology

Consumers expect modern websites to be mainly visual. But, the more compelling and complex the related media is, the more data is involved, compounding the site’s weight. In today’s content-craving world, delivering unoptimized media can cost you because it leads to sluggish page loads, resulting in visitors abandoning your site in search of a faster alternative. In fact, a page load that takes more than three seconds can cause as many as 40% of your visitors to bounce. Given this competitive, digital-first environment, you can’t afford to lose page views, for time is of the essence.

Read more
A Blueprint for AWS-Secured Webhook Listeners for Cloudinary

tl;dr: An AWS-secured and optimized Cloudinary webhook listener for extending the Cloudinary service

Code: Github

A webhook is a communication medium for sending notifications from one platform to another about events that occurred. In place are user-defined HTTP callbacks that are triggered by specific events. When a triggered event takes place on the source site, the webhook listens to the event, collects the data, and sends it to the URL you specified in the form of an HTTP request.

Read more
New Accessibility Features for Cloudinary’s Product Gallery Widget

Cloudinary’s Product Gallery widget, which launched in 2019, has enabled many brands to effectively and efficiently showcase their products in a sleek and captivating manner, saving countless hours of development time and accelerating release cycles. By adding Cloudinary’s Product Gallery widget with its customizable UI to their product page, retailers reap numerous benefits, often turning visitors into customers in short order.

Read more
Why Successful Businesses Engage With and Convert Audiences With Visual Media

Most business buyers prefer to research purchase options online, as do many shoppers. No wonder online retail sales in the U.S. rose by 32.4% in 2020—an impressive gain of $105 billion.

For B2B and B2C businesses, text-heavy websites are no longer adequate in attracting shoppers. Instead, engaging visual media—spin images, videos, 3D models, augmented reality—are becoming a must for conveying eye-catching details and differentiators about products or services.

Read more
Making User-Generated Content (UGC) Shoppable With Cloudinary

User-generated content (UGC) is a powerful marketing tool. Not only does video complement marketing efforts for e-commerce by enabling customers to explore products in greater detail, but UGC also adds an element of trust. As a bonus, user-generated video is an exceptional opportunity for e-businesses to attract website traffic without their marketing team having to create promotional videos from scratch. User-generated content drives conversions and brand loyalty as a direct result of authentic interaction.

Read more