CivArchive
    Qwen Image 2.1 Rotate + Outpaint: Straighten, Crop, Open Up the Scene - v1.0
    NSFW
    Preview 143932360

    Turn, crop and open up a picture with Qwen Image 2.1 and my outpaint LoRA, in one pass. Straighten or tilt it, cut away what you don't want, and pad the sides out. Qwen paints the new areas, and your kept pixels go back on top untouched.

    The first run turns the sample mirror selfie by -14.2°, cuts away the mirror frame, and opens the bedroom up on the left, top and right: 864 × 1152 in, 864 × 1216 out, in about 8 seconds on an RTX 5090.

    What it's for

    • Straighten a crooked photo without losing its corners: the rotation's gray wedges get painted.

    • Cut something away and let it be painted fresh, like the mirror frame in the sample.

    • Re-roll a part you don't like: crop past it, then pad back out.

    • Put a transparent cutout in a scene: its transparent area is painted too. Say which scene in the extra-detail line.

    What's inside

    • Image Crop + Rotate + Pad: turn the picture with the round handle, drag the crop edges in, and drag the orange handles out. Flat gray (#808080) fill, feather 0, and a 1 MP canvas in steps of 32. Load your picture first: picking a new one resets the tilt, crop and padding.

    • Auto prompt: Text Generate runs the Qwen3-VL 8B encoder that Qwen 2.1 already loads (no extra download). It describes the canvas Qwen gets, so anything you cropped away never reaches the prompt. The prompt is the outpaint instruction, then Scene:, then that description; Show Text displays it.

    • Extra detail (optional): one line for what the new area should hold. The sample's line asks for more of the bedroom.

    • Encode + sample: Text Encode Qwen Image 2.1 takes the canvas as image_1 at resolution 0, then 25 steps, CFG 1, euler / simple, fixed seed. My outpaint LoRA v2 runs at strength 1, with v1 one click away. If the LoRA file is missing, the run stops before sampling and the LoRA Loader turns red. Switch the row off to run plain Qwen 2.1.

    • Stitch + save: Split Image with Alpha drops the alpha channel that Qwen 2.1's VAE decodes. Stitch Inpaint puts your kept pixels back with a 32 px blend, Compare slides the result against the canvas, and Save Image writes a PNG with the workflow embedded.

    Quick start

    1. Update ComfyUI. You need a build with Text Encode Qwen Image 2.1 (mid-September 2026 or newer; I tested on 0.37.0).

    2. Install AusBoss nodes from ComfyUI-Manager (search "AusBoss", registry id ausboss-nodes) and restart. You need 2.2.0 or newer, which is what Manager installs.

    3. Unzip sample_inputs.zip into ComfyUI/input/.

    4. Drag the workflow in and download the files from the card, the LoRA included.

    5. Queue. For your own picture, load it first, then turn, crop and pad.

    Models

    Custom nodes

    Only ComfyUI-AusBoss, 2.2.0 or newer (Manager installs it): free and open source. Text Encode Qwen Image 2.1, the reference cache, Text Generate and Split Image with Alpha are core ComfyUI.

    Manager can't find AusBoss? In the classic Manager window, if the Channel box is empty, pick default, then click Install Missing Custom Nodes again. See what to click.

    Settings that worked, and what didn't

    • Use the LoRA. On tilted pictures, plain Qwen 2.1 moved the scene in all 12 of my test renders, by up to 95 px. The pasted-back original then showed as a lighter tilted box with doubled edges. With the LoRA, the picture stayed put in all 24.

    • Feather 0. This node's feather also fades the picture into the gray, and the model paints that fade as a darker band along the tilt. Stitch Inpaint still blends the seam.

    • Color match 0. On a rotated and padded canvas it reads the gray corners as part of the picture and tints the fill.

    • The caption reads the canvas, not your file. Your file can still hold what you cropped away, or black under transparent pixels, and describing those brought them back. Reading the canvas, it invents a little more (it once called a record crate a piano); the extra-detail line steers it.

    Speed

    Measured on an RTX 5090 (32 GB) with the models loaded: about 8 s for the sample, caption included.

    The PNG is a straight output of this workflow from the sample; drag it into ComfyUI to load its exact settings. The sample is my own render. The cover is cut from the real run.

    License & credits

    Qwen Image 2.1 is © Alibaba Qwen, released under the Qwen Research License: non-commercial use only; commercial use needs a separate license from Qwen. The outpaint LoRA is mine and follows that license when used with the model. The workflow and the AusBoss nodes are free.

    Changelog

    • v1.0 (2026-09-26): first release.

    Questions or bugs: GitHub issues or the comments here. Post what you make with it; I read everything. I post new workflows on X @Zanzibased and GitHub.

    Description

    Workflows
    Qwen 2.1

    Details

    Downloads
    60
    Platform
    CivitAI
    Platform Status
    Available
    Created
    9/27/2026
    Updated
    9/27/2026
    Deleted
    -

    Files

    qwenImage21RotateOutpaint_v10.zip

    Mirrors

    qwenImage21RotateOutpaint_v10.json

    Mirrors