Loading...
Loading...
Polish raw screenshots into LP-ready heroes.
npx skill4agent add picsart/gen-ai-skills dev-screenshot-beautifiergen-ai models info recraftv3-replace-bg
gen-ai pricing recraftv3-replace-bggen-ai change-bg \
-i ./raw.png \
-p "soft studio gradient, magenta #FF006E to deep purple #0D0A1F, subtle rim light from top-left, very slight film grain" \
--download ./outgen-ai generate -m flux-kontext-pro \
-i ./raw.png \
-p "product screenshot of the provided UI, placed inside a MacBook Pro 14 bezel, floating slightly tilted at 4° right, soft drop shadow below, glassy reflection underneath, matte charcoal background, centered composition, 16:9" \
--aspect-ratio 16:9 \
--download ./outsharpgen-ai generate -m flux-2-pro \
-p "abstract studio backdrop, soft magenta-to-purple gradient, subtle light orb top-left, empty center composition, 1920×1080" \
--aspect-ratio 16:9 \
--download ./out/bg
# Then locally: sharp, browser canvas/CSS, or optional ffmpeg composite with device frame + shadowgen-ai generate -m flux-kontext-pro \
-i ./out/result.png \
-p "same composition, re-lit for dark mode: deep #0D0A1F background, teal #00F0FF accent rim light, subtle glow behind the device, keep UI content identical" \
--aspect-ratio 16:9 \
--download ./out/dark{
"defaults": {
"model": "flux-kontext-pro",
"aspectRatio": "16:9"
},
"jobs": [
{ "id": "hero-dashboard", "imageUrls": ["./raw/dashboard.png"], "prompt": "MacBook Pro 14 bezel, soft drop shadow, magenta-to-purple studio gradient, slight 3° tilt right" },
{ "id": "hero-dashboard-dark", "imageUrls": ["./raw/dashboard.png"], "prompt": "MacBook Pro 14 bezel, deep #0D0A1F backdrop, teal rim light, subtle glow, identical UI content" },
{ "id": "hero-mobile-timer", "imageUrls": ["./raw/timer.png"], "prompt": "iPhone 16 Pro bezel, portrait, floating with soft shadow, gradient backdrop", "aspectRatio": "9:16" },
{ "id": "hero-settings", "imageUrls": ["./raw/settings.png"], "prompt": "Browser chrome (Arc-style), soft studio gradient, subtle reflection under window" }
]
}gen-ai batch run screenshots.json -c 3 -o ./out/beautified| Sub-task | Model | Why |
|---|---|---|
| Background swap only, preserve UI pixel-exact | | Cleanest edge extraction on UI shapes |
| Background removal (transparent PNG out) | | Fast, reliable, preserves anti-aliasing |
| Device frame + shadow + reflection (full recomposite) | | Best edit model, follows |
| Standalone backdrop for local compositing | | Richest textures + lighting |
| Quick draft while choosing direction | | Lowest credits |
| Upscale final export to print | | 2-4× with UI-safe edges |
gen-ai models --mode imagebrand.md-i--save-to-drive--no-save-to-drive| Pitfall | Fix |
|---|---|
| UI text is rewritten / garbled after edit | Use Option A (bg swap) or Option C (local composite) — not Option B |
| Device bezel looks melted at corners | Drop Flux Kontext Pro; use remove-bg + local PNG composite with a real bezel asset |
| Perspective is wrong (tilted + fish-eye) | Prompt explicitly "flat, frontal, no perspective distortion" — or composite locally |
| Dark variant shifts UI colors | Pass the light variant as |
| Screenshot contains leaked customer data | Blur/redact in the raw PNG BEFORE running gen-ai |
| Anti-aliasing fringe after bg removal | Use |
| Gradient backdrop clashes with UI accent color | Pull the UI's accent into the prompt palette; match rather than contrast |
gen-ai whoami--debug| Task | Credits | Time |
|---|---|---|
| Background swap (picsart-change-bg) | 1-2 | ~4-8s |
| Background removal (picsart-remove-bg) | 1 | ~3-5s |
| Full edit with device frame (flux-kontext-pro) | 3-6 | ~10-18s |
| Standalone backdrop (flux-2-pro) | 3-5 | ~10-15s |
| Paired dark-mode variant | +3-6 | +10-18s |
| Upscale to 4K (topaz-upscale-image) | 2-4 | ~15-30s |
| Typical blog hero (light + dark, framed) | ~10-15 | ~30-45s |
gen-ai-use.mdgen-ai-batch.mdgen-ai batch resume <output-dir>gen-ai-workflows.mddev-og-image-servicedev-app-assets