Cloudinary Blog

How to Automatically Remove Photo Backgrounds in Seconds With AI

Automate Photo-Background Removal With AI

These days, e-commerce websites are trending clean and sleek, almost always spotlighting high-quality product photos with a flat-white, solid-color, or transparent background. Many practical and well-validated reasons support this choice, making it clear that this is no passing fad. This graphic illustrates a few of them:

Infographic: Why Remove Photo Backgrounds?

How do website or app developers deliver hundreds or thousands of solid- or transparent-background images, including user-generated content? Getting someone to manually edit them with an editing tool definitely doesn’t scale.


Sign up for Cloudinary free today!


Cloudinary has the solution in its AI Background-Removal Add-On. The add-on's deep-learning and artificial-intelligence algorithms identify the primary subject in each photo's foreground and then accurately remove its background in mere seconds.

Moments after you upload your photos, . . .

These . . .

Become These!

Dog on Sand (Original)

Dog on Sand (No Background)

Baseball Player (Original)

Baseball Player (No Background)

Transparent Backgrounds Are Just a Parameter Away

Cloudinary is a robust media-management platform that leverages automation and deep-learning algorithms to simplify and accelerate workflows for website and app developers, from bulk uploads of raw photos to on-the-fly transformations for creating multiple media variants, optimizations, and responsive delivery to all devices.

To apply the AI Background Removal Add-On to images during or after uploading them to your Cloudinary account, add the background_removal parameter set to cloudinary_ai in your upload or update command. When triggered in the method call, the add-on analyzes the image and then replaces the originally uploaded image with a transparent PNG containing only the foreground image. Cloudinary backs up the original for later retrieval, if required.For example, to have Cloudinary replace the the baseball JPG image above with a transparent PNG, you could run the following upload command:

Ruby:
Copy to clipboard
Cloudinary::Uploader.upload("baseball.jpg",
  :public_id => "baseball_no_bg",
  :background_removal => 'cloudinary_ai',
  :notification_url => "https://mysite.example.com/hooks")
PHP:
Copy to clipboard
\Cloudinary\Uploader::upload("baseball.jpg", 
  array(
    "public_id" => "baseball_no_bg",
    "background_removal" => "cloudinary_ai",
    "notification_url" => "https://mysite.example.com/hooks"));
Python:
Copy to clipboard
cloudinary.uploader.upload("baseball.jpg",
  public_id = "baseball_no_bg",
  background_removal = "cloudinary_ai",
  notification_url = "https://mysite.example.com/hooks")
Node.js:
Copy to clipboard
cloudinary.v2.uploader.upload("baseball.jpg", 
  { public_id: "baseball_no_bg",
    background_removal: "cloudinary_ai",
    notification_url: "https://mysite.example.com/hooks" }),
  function(error, result){console.log(result);});
Java:
Copy to clipboard
cloudinary.uploader().upload("baseball.jpg", 
  ObjectUtils.asMap(
    "public_id", "baseball_no_bg",
    "background_removal", "cloudinary_ai",
    "notification_url", "https://mysite.example.com/hooks"));
.NET:
Copy to clipboard
var uploadParams = new ImageUploadParams(){
  File = new FileDescription(@"baseball.jpg"),
  PublicId = "baseball_no_bg",
  BackgroundRemoval = "cloudinary_ai",
  NotificationUrl = "https://mysite.example.com/hooks"};
var uploadResult = cloudinary.Upload(uploadParams);

Even though background removal takes only a few seconds, if you plan to deliver the transparent image on your site or app immediately after upload, it's a good idea to include the notification_url parameter in your upload or upload command, which activates a webhook that receives the removal status. You can then check if removal is still in progress and, if so, you might want to display a placeholder image or an in-progress animation until the process is complete.

We Only Make It Look Simple

Segmenting objects from images is a fundamental and well-studied challenge in the computer industry. Nowadays, neural networks are the “secret sauce” behind many segmentation tasks that enable state-of-the-art functionality for various applications, such as autonomous driving, medical analysis, and industrial planning.

As shown above, erasing image backgrounds with Cloudinary’s add-on is simple for the developers who use it.. Behind the scenes, however, the Cloudinary engine must perform these three complex tasks::

  1. Identify the salient objects in the image to determine which objects to classify as foreground according to the context and scene composition.

  2. Segment the salient objects. Most neutral networks today produce only coarse maps through standard segmentation techniques. For images slated for production, the segmentation maps of foreground versus background pixels must be near-perfect to achieve seamless background removal, e.g., proper segmentation of fur and hair requires meticulous processing.

    Currently, no large public dataset exists for accurate background removal, rendering it all the more difficult to acquire the quantity of media assets necessary for training neutral networks.

  3. Separate the foreground as an alpha layer.

    While addressing those challenges, we at Cloudinary also focused on finding ways to optimize our algorithm to deliver the high performance our customers expect; that means processing images of all sizes at scale.

Optimal Results Are Paramount

When you prepare the delivery URLs for the resulting transparent PNGs, you might want to do one or both of the following:

  • Add a solid or neutral background to the images and then optimize the updated images using Cloudinary's auto‑format (f_auto) and auto-quality (q_auto) parameters to reduce file sizes with no loss in visual quality.

  • Eliminate unnecessary white space in the transparent images, which still retain the original dimensions, and then center them within the updated dimensions To do that, just add the auto-cropping parameter, which tells Cloudinary to identify the visible items in the images and then resize and crop them around these foreground objects to the size and aspect ratio you request.

For example, the Background Removal Add-On returns this cute stuffed sheep without the table and wall in the background but with a lot of redundant white space on the right. Also, this transparent PNG boasts a hefty weight of slightly over 1 MB.

Stuffed Sheep (Original) Stuffed Sheep With No Background

How about transforming the image further in the following ways?

  1. Convert the image to a square JPG with a white background.
  2. Optimize the image with f_auto and q_auto.
  3. Add the g_auto:subject parameter to ensure that, no matter the aspect ratio, Cloudinary automatically selects the location for the cropping based on the main—in this case, the only—subject in the image.
  4. Add a thin gray border.

Ruby:
Copy to clipboard
cl_image_tag("docs/rmv_bgd/stuffed.jpg", :transformation=>[
  {:quality=>"auto", :gravity=>"auto:subject", :height=>1280, :aspect_ratio=>"1", :background=>"white", :crop=>"thumb"},
  {:border=>"1px_solid_gray"}
  ])
PHP v1:
Copy to clipboard
cl_image_tag("docs/rmv_bgd/stuffed.jpg", array("transformation"=>array(
  array("quality"=>"auto", "gravity"=>"auto:subject", "height"=>1280, "aspect_ratio"=>"1", "background"=>"white", "crop"=>"thumb"),
  array("border"=>"1px_solid_gray")
  )))
PHP v2:
Copy to clipboard
(new ImageTag('docs/rmv_bgd/stuffed'))
  ->resize(Resize::thumbnail()->height(1280)->aspectRatio(1)
    ->gravity(Gravity::autoGravity()->autoFocus(AutoFocus::focusOn(FocusOn::subject()))))
  ->backgroundColor(Color::WHITE)
  ->delivery(Delivery::format(Format::auto()))
  ->delivery(Delivery::quality(Quality::auto()))
  ->border(Border::solid(1, Color::GRAY));
Python:
Copy to clipboard
CloudinaryImage("docs/rmv_bgd/stuffed.jpg").image(transformation=[
  {'quality': "auto", 'gravity': "auto:subject", 'height': 1280, 'aspect_ratio': "1", 'background': "white", 'crop': "thumb"},
  {'border': "1px_solid_gray"}
  ])
Node.js:
Copy to clipboard
cloudinary.image("docs/rmv_bgd/stuffed.jpg", {transformation: [
  {quality: "auto", gravity: "auto:subject", height: 1280, aspect_ratio: "1", background: "white", crop: "thumb"},
  {border: "1px_solid_gray"}
  ]})
Java:
Copy to clipboard
cloudinary.url().transformation(new Transformation()
  .quality("auto").gravity("auto:subject").height(1280).aspectRatio("1").background("white").crop("thumb").chain()
  .border("1px_solid_gray")).imageTag("docs/rmv_bgd/stuffed.jpg");
JS:
Copy to clipboard
cloudinary.imageTag('docs/rmv_bgd/stuffed.jpg', {transformation: [
  {quality: "auto", gravity: "auto:subject", height: 1280, aspectRatio: "1", background: "white", crop: "thumb"},
  {border: "1px_solid_gray"}
  ]}).toHtml();
jQuery:
Copy to clipboard
$.cloudinary.image("docs/rmv_bgd/stuffed.jpg", {transformation: [
  {quality: "auto", gravity: "auto:subject", height: 1280, aspect_ratio: "1", background: "white", crop: "thumb"},
  {border: "1px_solid_gray"}
  ]})
React:
Copy to clipboard
<Image publicId="docs/rmv_bgd/stuffed.jpg" >
  <Transformation quality="auto" gravity="auto:subject" height="1280" aspectRatio="1" background="white" crop="thumb" />
  <Transformation border="1px_solid_gray" />
</Image>
Vue.js:
Copy to clipboard
<cld-image publicId="docs/rmv_bgd/stuffed.jpg" >
  <cld-transformation quality="auto" gravity="auto:subject" height="1280" aspectRatio="1" background="white" crop="thumb" />
  <cld-transformation border="1px_solid_gray" />
</cld-image>
Angular:
Copy to clipboard
<cl-image public-id="docs/rmv_bgd/stuffed.jpg" >
  <cl-transformation quality="auto" gravity="auto:subject" height="1280" aspect-ratio="1" background="white" crop="thumb">
  </cl-transformation>
  <cl-transformation border="1px_solid_gray">
  </cl-transformation>
</cl-image>
.NET:
Copy to clipboard
cloudinary.Api.UrlImgUp.Transform(new Transformation()
  .Quality("auto").Gravity("auto:subject").Height(1280).AspectRatio("1").Background("white").Crop("thumb").Chain()
  .Border("1px_solid_gray")).BuildImageTag("docs/rmv_bgd/stuffed.jpg")
Android:
Copy to clipboard
MediaManager.get().url().transformation(new Transformation()
  .quality("auto").gravity("auto:subject").height(1280).aspectRatio("1").background("white").crop("thumb").chain()
  .border("1px_solid_gray")).generate("docs/rmv_bgd/stuffed.jpg");
iOS:
Copy to clipboard
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()
  .setQuality("auto").setGravity("auto:subject").setHeight(1280).setAspectRatio("1").setBackground("white").setCrop("thumb").chain()
  .setBorder("1px_solid_gray")).generate("docs/rmv_bgd/stuffed.jpg")!, cloudinary: cloudinary)
Sheep in JPG Format With a White Background

That way, even if you retain the image’s original height of 1,280 pixels, the delivered version would still weigh only 92 KB.

Another excellent way to eliminate excessive whitespace from images is to apply Cloudinary's trimming effect (trim), like this:

Ruby:
Copy to clipboard
cl_image_tag("docs/rmv_bgd/stuffed.jpg", :transformation=>[
  {:quality=>"auto", :effect=>"trim", :background=>"white"},
  {:border=>"1px_solid_gray"}
  ])
PHP v1:
Copy to clipboard
cl_image_tag("docs/rmv_bgd/stuffed.jpg", array("transformation"=>array(
  array("quality"=>"auto", "effect"=>"trim", "background"=>"white"),
  array("border"=>"1px_solid_gray")
  )))
PHP v2:
Copy to clipboard
(new ImageTag('docs/rmv_bgd/stuffed'))
  ->reshape(Reshape::trim())
  ->backgroundColor(Color::WHITE)
  ->delivery(Delivery::format(Format::auto()))
  ->delivery(Delivery::quality(Quality::auto()))
  ->border(Border::solid(1, Color::GRAY));
Python:
Copy to clipboard
CloudinaryImage("docs/rmv_bgd/stuffed.jpg").image(transformation=[
  {'quality': "auto", 'effect': "trim", 'background': "white"},
  {'border': "1px_solid_gray"}
  ])
Node.js:
Copy to clipboard
cloudinary.image("docs/rmv_bgd/stuffed.jpg", {transformation: [
  {quality: "auto", effect: "trim", background: "white"},
  {border: "1px_solid_gray"}
  ]})
Java:
Copy to clipboard
cloudinary.url().transformation(new Transformation()
  .quality("auto").effect("trim").background("white").chain()
  .border("1px_solid_gray")).imageTag("docs/rmv_bgd/stuffed.jpg");
JS:
Copy to clipboard
cloudinary.imageTag('docs/rmv_bgd/stuffed.jpg', {transformation: [
  {quality: "auto", effect: "trim", background: "white"},
  {border: "1px_solid_gray"}
  ]}).toHtml();
jQuery:
Copy to clipboard
$.cloudinary.image("docs/rmv_bgd/stuffed.jpg", {transformation: [
  {quality: "auto", effect: "trim", background: "white"},
  {border: "1px_solid_gray"}
  ]})
React:
Copy to clipboard
<Image publicId="docs/rmv_bgd/stuffed.jpg" >
  <Transformation quality="auto" effect="trim" background="white" />
  <Transformation border="1px_solid_gray" />
</Image>
Vue.js:
Copy to clipboard
<cld-image publicId="docs/rmv_bgd/stuffed.jpg" >
  <cld-transformation quality="auto" effect="trim" background="white" />
  <cld-transformation border="1px_solid_gray" />
</cld-image>
Angular:
Copy to clipboard
<cl-image public-id="docs/rmv_bgd/stuffed.jpg" >
  <cl-transformation quality="auto" effect="trim" background="white">
  </cl-transformation>
  <cl-transformation border="1px_solid_gray">
  </cl-transformation>
</cl-image>
.NET:
Copy to clipboard
cloudinary.Api.UrlImgUp.Transform(new Transformation()
  .Quality("auto").Effect("trim").Background("white").Chain()
  .Border("1px_solid_gray")).BuildImageTag("docs/rmv_bgd/stuffed.jpg")
Android:
Copy to clipboard
MediaManager.get().url().transformation(new Transformation()
  .quality("auto").effect("trim").background("white").chain()
  .border("1px_solid_gray")).generate("docs/rmv_bgd/stuffed.jpg");
iOS:
Copy to clipboard
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()
  .setQuality("auto").setEffect("trim").setBackground("white").chain()
  .setBorder("1px_solid_gray")).generate("docs/rmv_bgd/stuffed.jpg")!, cloudinary: cloudinary)
Sheep in JPG With White Background

Not Everything Is Black and White

Besides those steps performed by the Background Removal Add-On, optimizing images for delivery often involves other transformations, such as replacing the transparent background and converting the image to a non-PNG format. You might wonder why we don't just return a (smaller) JPG that already has a solid white background.

We're glad you asked. .

Neutral Colors

In addition to offering the same advantages as those from a white background, a light, neutral-colored background breaks the monotony of an all-white page, sometimes even conveying a certain style or personality without distracting visitors from the main theme.. Walmart.com’s apparel landing-page is one example.

The Walmart Example

To have Cloudinary automatically change the background color, set the value of the background (b_) parameter in your URL to the desired color. For example, here’s the image of the sheep with a very light-blue background.

True Colors

Conversely, some retailers, such as Zara.com, opt for brightly colored backgrounds for white or black products and neutral backgrounds for other merchandise.

The Zara Example

Without a Shadow of a Doubt

A fully transparent background makes it easy to add shadows. Even if the object in the original photograph has a shadow, the Background Removal Add-On will remove that shadow, enabling you to add a consistent shadow location and size for all your product images.

For example:

Remote Control (Original) Remote Control (Original) Backgroundless Remote Control Backgroundless Remote Control Backgroundless remote control with an added shadow Backgroundless remote control with an added shadow

Below is the transformation used for the far right image shown above: :

Ruby:
Copy to clipboard
cl_image_tag("docs/rmv_bgd/remote.png", :transformation=>[
  {:width=>200, :quality=>"auto", :crop=>"scale"},
  {:effect=>"shadow:50", :x=>6, :y=>6}
  ])
PHP v1:
Copy to clipboard
cl_image_tag("docs/rmv_bgd/remote.png", array("transformation"=>array(
  array("width"=>200, "quality"=>"auto", "crop"=>"scale"),
  array("effect"=>"shadow:50", "x"=>6, "y"=>6)
  )))
PHP v2:
Copy to clipboard
(new ImageTag('docs/rmv_bgd/remote.png'))
  ->resize(Resize::scale()->width(200))
  ->delivery(Delivery::quality(Quality::auto()))
  ->effect(Effect::shadow()->strength(50)->offsetX(6)->offsetY(6));
Python:
Copy to clipboard
CloudinaryImage("docs/rmv_bgd/remote.png").image(transformation=[
  {'width': 200, 'quality': "auto", 'crop': "scale"},
  {'effect': "shadow:50", 'x': 6, 'y': 6}
  ])
Node.js:
Copy to clipboard
cloudinary.image("docs/rmv_bgd/remote.png", {transformation: [
  {width: 200, quality: "auto", crop: "scale"},
  {effect: "shadow:50", x: 6, y: 6}
  ]})
Java:
Copy to clipboard
cloudinary.url().transformation(new Transformation()
  .width(200).quality("auto").crop("scale").chain()
  .effect("shadow:50").x(6).y(6)).imageTag("docs/rmv_bgd/remote.png");
JS:
Copy to clipboard
cloudinary.imageTag('docs/rmv_bgd/remote.png', {transformation: [
  {width: 200, quality: "auto", crop: "scale"},
  {effect: "shadow:50", x: 6, y: 6}
  ]}).toHtml();
jQuery:
Copy to clipboard
$.cloudinary.image("docs/rmv_bgd/remote.png", {transformation: [
  {width: 200, quality: "auto", crop: "scale"},
  {effect: "shadow:50", x: 6, y: 6}
  ]})
React:
Copy to clipboard
<Image publicId="docs/rmv_bgd/remote.png" >
  <Transformation width="200" quality="auto" crop="scale" />
  <Transformation effect="shadow:50" x="6" y="6" />
</Image>
Vue.js:
Copy to clipboard
<cld-image publicId="docs/rmv_bgd/remote.png" >
  <cld-transformation width="200" quality="auto" crop="scale" />
  <cld-transformation effect="shadow:50" x="6" y="6" />
</cld-image>
Angular:
Copy to clipboard
<cl-image public-id="docs/rmv_bgd/remote.png" >
  <cl-transformation width="200" quality="auto" crop="scale">
  </cl-transformation>
  <cl-transformation effect="shadow:50" x="6" y="6">
  </cl-transformation>
</cl-image>
.NET:
Copy to clipboard
cloudinary.Api.UrlImgUp.Transform(new Transformation()
  .Width(200).Quality("auto").Crop("scale").Chain()
  .Effect("shadow:50").X(6).Y(6)).BuildImageTag("docs/rmv_bgd/remote.png")
Android:
Copy to clipboard
MediaManager.get().url().transformation(new Transformation()
  .width(200).quality("auto").crop("scale").chain()
  .effect("shadow:50").x(6).y(6)).generate("docs/rmv_bgd/remote.png");
iOS:
Copy to clipboard
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()
  .setWidth(200).setQuality("auto").setCrop("scale").chain()
  .setEffect("shadow:50").setX(6).setY(6)).generate("docs/rmv_bgd/remote.png")!, cloudinary: cloudinary)

Green Screening Without a Green Screen

For fun, add the underlay parameter set to an image’s public ID to add background scenery for a green-screen-like effect..

For example, with an instantaneous on-the-fly transformation, we can send our baseball player to outer space, get the dog off the couch, and place the hiking boots against natural scenery:

Baseball Player (Original) Baseball Player in Outer Space

Lazy Dog (Original) Lazy Dog on the Beach

Hiking Boots (Original) Hiking Boots With a Background of Natural Scenery

Below is the delivery code for the hiking boots image.
(Click the other transformed images in the right column above to see their delivery URLs in your browser.)

Ruby:
Copy to clipboard
cl_image_tag("docs/rmv_bgd/shoes.png", :transformation=>[
  {:width=>800, :quality=>"auto", :crop=>"scale"},
  {:underlay=>"docs:canyon2", :gravity=>"south", :height=>1000}
  ])
PHP v1:
Copy to clipboard
cl_image_tag("docs/rmv_bgd/shoes.png", array("transformation"=>array(
  array("width"=>800, "quality"=>"auto", "crop"=>"scale"),
  array("underlay"=>"docs:canyon2", "gravity"=>"south", "height"=>1000)
  )))
PHP v2:
Copy to clipboard
(new ImageTag('docs/rmv_bgd/shoes.png'))
  ->resize(Resize::scale()->width(800))
  ->delivery(Delivery::format(Format::auto()))
  ->delivery(Delivery::quality(Quality::auto()))
  ->underlay(
      Underlay::source(Source::image('docs/canyon2')
        ->transformation((new ImageTransformation())
          ->resize(Resize::scale()->height(1000))))
      ->position((new Position())
        ->gravity(Gravity::compass(Compass::south()))
  ));
Python:
Copy to clipboard
CloudinaryImage("docs/rmv_bgd/shoes.png").image(transformation=[
  {'width': 800, 'quality': "auto", 'crop': "scale"},
  {'underlay': "docs:canyon2", 'gravity': "south", 'height': 1000}
  ])
Node.js:
Copy to clipboard
cloudinary.image("docs/rmv_bgd/shoes.png", {transformation: [
  {width: 800, quality: "auto", crop: "scale"},
  {underlay: "docs:canyon2", gravity: "south", height: 1000}
  ]})
Java:
Copy to clipboard
cloudinary.url().transformation(new Transformation()
  .width(800).quality("auto").crop("scale").chain()
  .underlay(new Layer().publicId("docs:canyon2")).gravity("south").height(1000)).imageTag("docs/rmv_bgd/shoes.png");
JS:
Copy to clipboard
cloudinary.imageTag('docs/rmv_bgd/shoes.png', {transformation: [
  {width: 800, quality: "auto", crop: "scale"},
  {underlay: new cloudinary.Layer().publicId("docs:canyon2"), gravity: "south", height: 1000}
  ]}).toHtml();
jQuery:
Copy to clipboard
$.cloudinary.image("docs/rmv_bgd/shoes.png", {transformation: [
  {width: 800, quality: "auto", crop: "scale"},
  {underlay: new cloudinary.Layer().publicId("docs:canyon2"), gravity: "south", height: 1000}
  ]})
React:
Copy to clipboard
<Image publicId="docs/rmv_bgd/shoes.png" >
  <Transformation width="800" quality="auto" crop="scale" />
  <Transformation underlay="docs:canyon2" gravity="south" height="1000" />
</Image>
Vue.js:
Copy to clipboard
<cld-image publicId="docs/rmv_bgd/shoes.png" >
  <cld-transformation width="800" quality="auto" crop="scale" />
  <cld-transformation :underlay="docs:canyon2" gravity="south" height="1000" />
</cld-image>
Angular:
Copy to clipboard
<cl-image public-id="docs/rmv_bgd/shoes.png" >
  <cl-transformation width="800" quality="auto" crop="scale">
  </cl-transformation>
  <cl-transformation underlay="docs:canyon2" gravity="south" height="1000">
  </cl-transformation>
</cl-image>
.NET:
Copy to clipboard
cloudinary.Api.UrlImgUp.Transform(new Transformation()
  .Width(800).Quality("auto").Crop("scale").Chain()
  .Underlay(new Layer().PublicId("docs:canyon2")).Gravity("south").Height(1000)).BuildImageTag("docs/rmv_bgd/shoes.png")
Android:
Copy to clipboard
MediaManager.get().url().transformation(new Transformation()
  .width(800).quality("auto").crop("scale").chain()
  .underlay(new Layer().publicId("docs:canyon2")).gravity("south").height(1000)).generate("docs/rmv_bgd/shoes.png");
iOS:
Copy to clipboard
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()
  .setWidth(800).setQuality("auto").setCrop("scale").chain()
  .setUnderlay("docs:canyon2").setGravity("south").setHeight(1000)).generate("docs/rmv_bgd/shoes.png")!, cloudinary: cloudinary)

Put It All Together

To display product photos on your own site or marketplaces, or to offer background-removal service for the photos uploaded by your users, you need an automated, efficient, and reliable solution that ultimately delivers images with a sharp and clear foreground image. Once the original background is “out of the picture,” you can freely deliver your product images with white backgrounds, neutral colors, bright colors, or in context of a realistic scene.

Do all of the above if you wish. One way is to place all your background-free images—along with other product images or videos—in a single carousel-controlled gallery, such as Cloudinary's Product Gallery. For details, see this blog post, this video tutorial, and the Product Gallery documentation.

Now It's Your Turn!

To get started, sign up for a free Cloudinary account and register for the free tier of Cloudinary’s AI Background Removal Add-On. Also, check out the add-on’s documentation.

We'd love to see your transformed photos in the comments below.

Want to learn more about image editing?

Have a look at these articles:

Recent Blog Posts

Five Ways to Effectively Manage Online Media

The digital economy is driven by highly visual experiences. After all, viewers process images 60,000 times faster than text. Therefore, it’s no surprise that top-notch visual media has been an essential component of a captivating e-commerce experience for years. Nor is it surprising that visual media’s importance only rose during the COVID-19 pandemic, a reality for all retailers, including our client Levi’s.

Read more
Creating an API With Python Flask to Upload Files to Cloudinary

Code

Cloudinary offers SDKs for many programming languages and frameworks. Even though it also offers an Upload API endpoint for both back-end and front-end code, most developers find the SDKs very helpful. If you're working with a powerful back-end framework like Python Flask, you'll be happy to hear that a Python SDK is now available.
This tutorial walks you through the process of building an API to upload images to Cloudinary. You can also upload other file types, including video and even nonmedia files, with the API.

Read more
How to Use the Cloudinary Media Editor Widget

At Cloudinary, we manage the entire pipeline of media assets for thousands of customers of varying sizes from numerous verticals.

As part of our commitment to support the entire flow of media assets, we are now introducing an intuitive media editing widget: an out­-of­-the-­box, interactive UI providing your users with a set of common image editing actions for immediate use on your website or web app. The widget is interactive and simple, built on Cloudinary's transformation capabilities, and requiring only a few lines of code to integrate. Afterwards, you can seamlessly and effortlessly add content to your site or app with no need for in-house image editing capabilities.

Read more
Shoppable Video Is Becoming Popular in E-Commerce

As pandemic restrictions necessitated, many shopping trips in 2020 took place outside the traditional brick-and-mortar store, or at least void of the physical aisle-browsing experience. Same-day curbside pickup became a safe and convenient alternative, and e-commerce transactions skyrocketed as consumers shopped online. In fact, Digital Commerce 360 estimates that, compared to 2019, e-commerce transactions grew by more than 40% last year.

Read more
Enhance Your Travel Site With Cloudinary in Anticipation of a Return to New Normal

Read more