Cldimage

Examples

Below, you can see examples of usage of various effects that you can use from Cloudinary.

Basic transformations

Cloudinary supports a wide variety of powerful transformations that allow you to not only deliver, but easily edit and build new images on the fly.

Background

These examples will help you modify the background of your image.

Remove

removeBackground: Removes the background of the image using AI

removeBackground
test

Color

background: Specifies a color to use as a background.

removeBackground
background="blueviolet"
test

Image

underlay: Specifies a public ID to use as an underlaying image.

removeBackground
underlay=<YOUR_PUBLIC_ID>
test

Cropping

crop: Specifies the mode to use when cropping an image based on the given dimensions.

crop
test

Fill

fillBackground: Fills the background of an image using Generative AI

fillBackground
test

Generative AI

This section will guide you through the process of using Generative AI functionalities of Cloudinary

Enhance

enhance: Enhance the visual appeal of an image using Generative AI

enhance
test

Recolor

recolor: Recolors an object in an image using Generative AI

recolor={['shoelaces', 'purple']}
Sample Product

Remove Element

remove: Removes an object in an image using Generative AI

remove='mountain'
test

Replace Object

replace: Replaces an object in an image using Generative AI

replace=['turtle', 'shark']
Sample Product

Restore

restore: Restores an image using Generative AI

restore
test

Filters & Effects

This section will show you examples about usage of filters and effects

Zoompan

zoompan="loop"
test

Blur

blur="1200"
test

Pixelate

pixelate
test

Grayscale

grayscale
test

Tint

tint="equalize:80:blue:blueviolet"
test

Opacity

opacity="50"
test

Shear

shear="40:0"
test

Border

border="40px_solid_purple"
test

Loop

loop
test

Angle

angle="15"
test

Multiple Effects

:effects="[ { background: 'green' }, { gradientFade: true }, { gradientFade:
'symetric,x_0.5' } ]"
Sample Product

Overlays

overlays: Any array of overlay objects

:overlays="[
    {
      position: {
        gravity: 'north',
        y: 60
      },
      text: {
        color: 'rgb:52a4ff80',
        fontFamily: 'Source Sans Pro',
        fontSize: 320,
        fontWeight: 'black',
        text: 'MUSIC',
        letterSpacing: -10,
        lineSpacing: -100,
        stroke: true,
        border: '20px_solid_rgb:2d0eff99',
      }
    },
    {
      position: {
        gravity: 'south',
        y: 60
      },
      text: {
        color: 'rgb:52a4ff80',
        fontFamily: 'Source Sans Pro',
        fontSize: 320,
        fontWeight: 'black',
        text: 'IS LIFE',
        letterSpacing: -10,
        lineSpacing: -100,
        stroke: true,
        border: '20px_solid_rgb:2d0eff99',
      }
    }
  ]"
Sample Product