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.
20 lines
483 B
Text
20 lines
483 B
Text
use mod.flow.*
|
|
|
|
/** The image to enlarge. */
|
|
let image = Input{ type: @image at: vec2(40, 120) }
|
|
|
|
let upscale = Upscale{
|
|
image: image.image()
|
|
factor: 4
|
|
model: "realesrgan-x4plus"
|
|
at: vec2(360, 120)
|
|
}
|
|
|
|
/** The four-times larger image. */
|
|
let picture = Output{ type: @image value: upscale.out(@image) at: vec2(680, 120) }
|
|
|
|
Flow{
|
|
label: "Image upscale"
|
|
brief: "Enlarges a supplied image with the creator's RealESRGAN x4 recipe."
|
|
image, upscale, picture
|
|
}
|