GenerativeEffectTrait
trait GenerativeEffectTrait
Trait GenerativeEffectTrait
Methods
generativeRestore()
Applies a generative restore effect to the asset.
generativeRecolor(string|array $prompt, string $toColor, bool $detectMultiple = null)
Applies a generative recolor effect to the asset.
generativeRemove(string|array $prompt = null, string|array $region = null, bool $detectMultiple = null, bool $removeShadow = null)
Applies a generative remove effect to the asset.
generativeReplace(string $fromPrompt, string $toPrompt, bool $preserveGeometry = null, bool $detectMultiple = null)
Applies a generative replacement effect to the asset.
upscale()
Uses AI-based prediction to add fine detail while upscaling small images.
Details
static GenerativeEffectAction
generativeRestore()
Applies a generative restore effect to the asset.
static GenerativeRecolor
generativeRecolor(string|array $prompt, string $toColor, bool $detectMultiple = null)
Applies a generative recolor effect to the asset.
static GenerativeRemove
generativeRemove(string|array $prompt = null, string|array $region = null, bool $detectMultiple = null, bool $removeShadow = null)
Applies a generative remove effect to the asset.
static GenerativeReplace
generativeReplace(string $fromPrompt, string $toPrompt, bool $preserveGeometry = null, bool $detectMultiple = null)
Applies a generative replacement effect to the asset.
static GenerativeEffectAction
upscale()
Uses AI-based prediction to add fine detail while upscaling small images.
This 'super-resolution' feature scales each dimension by four, multiplying the total number of pixels by 16.