Skip to content

Generative Replace Background#167

Merged
colbyfayock merged 1 commit intomainfrom
feat/replace-background
Aug 2, 2024
Merged

Generative Replace Background#167
colbyfayock merged 1 commit intomainfrom
feat/replace-background

Conversation

@colbyfayock
Copy link
Collaborator

Description

Adds the generative replace background feature

https://cloudinary.com/documentation/transformation_reference#e_gen_background_replace

Usage

  • Boolean
replaceBackground
  • String
replaceBackground="prompt"
  • Object
replaceBackground={{
  prompt: 'prompt',
  seed: 2 // the ability to regenerate if you don't like the first one
}}

@colbyfayock colbyfayock merged commit 4129214 into main Aug 2, 2024
@colbyfayock colbyfayock deleted the feat/replace-background branch August 2, 2024 20:38
github-actions bot pushed a commit that referenced this pull request Aug 2, 2024
github-actions bot pushed a commit that referenced this pull request Aug 2, 2024
@github-actions
Copy link

github-actions bot commented Aug 2, 2024

🎉 This PR is included in version @cloudinary-util/url-loader-v5.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented Aug 2, 2024

🎉 This PR is included in version @cloudinary-util/url-loader-v5.5.0-beta.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

colbyfayock added a commit to cloudinary-community/next-cloudinary that referenced this pull request Aug 2, 2024
# Description

Adds generative replace background feature to replace background using
AI.

## Usage

Replacing the background based on the image context:

```jsx copy
replaceBackground
```

Or using a string prompt:

```jsx copy
replaceBackground="fish tank"
```

Or using the object format:

```jsx copy
replaceBackground={{
  prompt: 'fish tank',
  seed: 3
}}
```

URL Loader:
cloudinary-community/cloudinary-util#167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant