Nodes/comfyui_qwen_edit_pixel_perfect/Pre-Crop to Qwen (Drift-Free)
ComfyUI Node

Pre-Crop to Qwen (Drift-Free)

Center-crops the source to a size that is a fixed point of Qwen-Image-Edit's internal resize, so Qwen introduces zero scale/shift drift. Pair with UpscaleToOriginal to restore the output to the original resolution.

By oron1208·Created about a month ago·Updated about a month ago· 14
Pre-Crop to Qwen (Drift-Free)
  • image
  • cropped
crop_anchorcenter
force_minimumtrue
Categoryimage/transform

Inputs (3)

NameTypeDefaultDescription
imageIMAGE
crop_anchorCOMBOcenterWhere to anchor the crop when the source is larger than the target.
force_minimumBOOLEANtrueIf the source is smaller than the computed drift-free size, upscale it to reach the target (otherwise allow a smaller target).

Outputs (1)

NameTypeDescription
croppedIMAGEDrift-free crop ready to feed into Qwen.