nuxt-modules / cloudinary

Cloudinary Module for Nuxt
https://cloudinary.nuxtjs.org
MIT License
249 stars 34 forks source link

[Feature] Generative Replace Background #227

Closed colbyfayock closed 1 month ago

colbyfayock commented 1 month ago

Feature

Add generative replace background feature to replace background using AI.

Should just need to update URL loader and get this feature. Content below to help with writing out docs.

Usage

Replacing the background based on the image context:

replaceBackground

Or using a string prompt:

replaceBackground="fish tank"

Or using the object format:

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

URL Loader: https://github.com/cloudinary-community/cloudinary-util/pull/167

Example Documentation Content

https://github.com/cloudinary-community/next-cloudinary/blob/main/docs/pages/cldimage/configuration.mdx?plain=1#L716-L779

https://next.cloudinary.dev/cldimage/examples#generative-replace-background

Baroshem commented 1 month ago

Hey @colbyfayock

I have added this feature in https://github.com/nuxt-modules/cloudinary/pull/228