/flora-mcp-skills:flora-image-resizefrom FLORA
Generatively resizes images to target aspect ratios (9:16, 16:9, 1:1, 4:3, 3:4, 21:9) using FLORA's image-to-image models, preserving subject, props, palette, and grade. Use for reframing without cropping or letterboxing.
Ships in FLORA. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Hosted MCP generation inputs are plural: call flora_create_generations with { "generations": [{ "workspace_id": "ws_…", "project_id": "prj_…", "type": "image", "prompt": "…" }] } (1–20 items). Put per-generation fields, including optional model, params, and reference_node_ids, inside each item. Read generations[] in the response; retain successful entries' run_id and handle failures individually. Poll flora_list_generations with { "run_ids": ["run_…"] }, even for one run; add technique_id for technique runs. Never retry successful items because another item failed.
Use dedicated tools for this workflow, including batches. SDK examples below describe orchestration: use the corresponding dedicated tools, issue independent calls concurrently, retain every run id, and poll in later calls.
One source image into every placement's aspect ratio, generatively — no bars, no crop that loses the subject.
A reframe is a re-render that holds the subject, not an extension that holds the pixels. The model rebuilds the whole frame in the new shape, carrying subject, props, palette and grade across. It does not paste the original in and paint the margins. If a pixel must survive review unchanged, do not generate — pad or crop.
This is the one place this skill differs from flora-video-resize, whose v2v
prompt recipe can instruct the source to span the full width. It does not transfer.
User supplies an image (upload or URL) and wants other aspect ratios. Ask or infer the targets — default set: 9:16, 16:9, 1:1.
params, and that is not true of videoflora_create_generations does accept an i2i source through params.image_url:
{
"generations": [{
"workspace_id": "ws_…",
"project_id": "prj_…",
"model": "i2i-qwen-image-edit",
"type": "image",
"prompt": "Reframe this image to 9:16. Preserve the subject, props, palette, lighting and grade.",
"params": { "aspect_ratio": "9:16", "image_url": "https://media.flora.ai/source.png" }
}]
}
Verified — a 1024×1024 source returned 864×1536 with the subject, every prop, the
palette and the grade carried across. Do not copy the canvas-edge workaround from
flora-video-resize. That skill's #1 failure mode is that v2v silently ignores a
source passed this way and bills you for an unrelated text-to-video clip. i2i does
not behave that way, and wiring a canvas graph to get around a problem you do not
have costs you two extra calls per ratio.
Sanity-check the first run anyway: if the output shares no props with the source, the source was dropped and everything after it is text-to-image.
| Model | AR control | Est. | Use |
|---|---|---|---|
i2i-qwen-image-edit | native aspect_ratio — 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 | 40 cr / ~25s | Default. The only one you can actually aim. |
i2i-qwen-image-edit-plus | same | 40 cr / ~120s | 5× slower for the same quote. Only if Edit degrades the subject. |
i2i-imagen-3-outpainting | none — seed only | 54 cr / ~26s | Extends edges. You cannot tell it the target shape. |
i2i-out-flux-2-pro | none — outpaint_mode, auto_crop only | see below | Same. |
The models named "outpaint" are the wrong reach. An agent matching on the word
gets i2i-imagen-3-outpainting or i2i-out-flux-2-pro, neither of which exposes an
aspect ratio — the one parameter this job is about. Reach for i2i-qwen-image-edit.
i2i-out-flux-2-pro reports estimated_cost_usd: 0. It is not free. Its
provider is generation_gateway, and the catalog reports 0 for every model behind
that gateway — the same defect flora-video-resize names for Seedance. Never quote
a gateway model's cost from the catalog.
Measured on i2i-qwen-image-edit: quoted charged_cost: 0.036 at submit,
actually charged 0.02 on completion. Quote from the submit value so nobody is
surprised upward, and report the completion value as the real number. Four ratios
is roughly 0.08, not 0.15.
Not in i2i-qwen-image-edit's options, and not in the free AR action either. Both
stop at 3:4 and 2:3. Generate the nearest native ratio — 3:4 — then trim the
small delta with the free change-image-ar-browser action. Never ask the model for
4:5; aspect_ratio is an enum and an unlisted value is not honoured.
flora_create_generations with
params.image_url and params.aspect_ratio. Concurrent is one wait; sequential
is N waits, and each run is ~25s.Reframe this image from {source AR} to {target AR}.Keep the subject ({name it: identity, wardrobe, packaging}), every prop ({list them}), the background, lighting and colour grade exactly as in the source.Extend the scene into the revealed {top and bottom / left and right}, continuing {name the surface or backdrop}.Reproduce all text and logos glyph for glyph: {each string}.Do not restyle, recolour, or replace the subject.flora_list_generations. The output URL may land under node-inputs/
rather than node-outputs/ — that is normal for an i2i result, not an error.Check every output before delivering:
One failed check → one retry with the prompt tightened on the failure. Still
failing → deliver the best output and name the defect. Report the completion
charged_cost per run and the project link.
flora-video-resize for the moving version of the same job. flora-mockup-deck
when the ask is to place finished artwork into the world rather than change its
shape — that one reproduces the artwork exactly and never regenerates it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
generative-resize, image-reframe, aspect-ratio, outpainting, flora
npx claudepluginhub florafauna-ai/flora-mcp-skills --plugin flora-mcp-skills18 skills in this plugin
/flora-action-studioOpen FLORA's live action studio: run a prebuilt action, a workspace's own custom action, or a technique (custom action flow) so the result shows inline with the action's declared parameters as live controls the user adjusts themselves. Use when the user wants to tweak, tune or iterate on a transform rather than describe it — "let me adjust the colour grade", "give me sliders for this", "I want to play with the settings", "quantize this logo to a few colours and let me pick how many", "run my custom action on this", "turn my own code into an action I can tune" — or names an action or technique and wants to see and refine its output. Also use when the user wants to create, write or fix their own action ("can we create our own action", "make me a pixelate action", "turn this into an action", "my action failed, fix it") and when they name a transform to apply ("color grade it", "pixelate this", "quantize the logo"). Do not use for a plain generation with no source media (flora_create_generations), to inspect existing work (flora-canvas-iterate), or when the user wants one fixed result with no adjustment.
/flora-batch-generateTurn a structured list — products, campaign variants, SKUs, scenes, localisations — into one parallel batch of FLORA generations under a single consistent style. Fires every item at once through flora_create_generations, polls the whole batch with one flora_list_generations call, and settles cost and failures per item. Use when the input is a list, spreadsheet, folder, or set of variants and the output is one asset per row. Also use when someone asks for "a bunch of", "one for each", "all our", or hands over a CSV. Do not use for a single item, and do not use when each item needs a genuinely different treatment.
Other plugins' skills for the same job