makepad/libs/flow/recipes/templates/image-enhance.splash
Arena Agent d8d5ea8b6a Repair integration manifests and port nigig exports onto upstream widget families
Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
2026-10-26 11:23:26 +00:00

35 lines
914 B
Text

use mod.flow.*
/** The image to create and refine. */
let prompt = Input{ type: @text default: "a weathered fantasy creature portrait" at: vec2(40, 120) }
let expand = Llm{
system: "Rewrite the prompt as a clean high-detail image brief. Preserve identity, silhouette, and composition."
prompt: prompt.text()
at: vec2(360, 120)
}
let image = Image{
prompt: expand.text()
width: 512
height: 512
steps: 20
at: vec2(680, 120)
}
let enhance = ImageEdit{
prompt: expand.text()
image: image.image()
strength: 1.0
model: "flux2-dev"
at: vec2(1000, 120)
}
/** The high-detail image. */
let picture = Output{ type: @image value: enhance.out(@image) at: vec2(1320, 120) }
Flow{
label: "Image enhance"
brief: "Expands a prompt, paints a source image, and refines it with the creator's high-detail edit model."
prompt, expand, image, enhance, picture
}