A box drawn on a reduced preview cannot always be copied directly into an image-editing API. First identify the expected coordinate system. Wan’s image-editing API uses original-image pixel boxes and associates region lists with individual inputs. A correct-looking preview rectangle can therefore target the wrong place when its coordinates or image association are copied incorrectly.
Identify the displayed image geometry
Record the original file dimensions and the preview’s displayed image rectangle. Exclude interface padding and letterboxing. Determine whether the preview shows the complete image or a crop. A coordinate measured from the whole browser panel is not necessarily measured from the image’s top-left corner.
For a hypothetical uncropped original measuring 4000 by 3000 pixels, displayed at 1000 by 750, a preview box from (100,150) to (300,350) maps to (400,600) through (1200,1400). This simple multiplication assumes uniform scaling and no padding or crop. If those assumptions fail, calculate the correct transform or use a tool that reports original-image coordinates. Do not reuse the example numbers as universal settings.
Keep region ownership with every image
List each input in submitted order and attach its own region data. Where the documented contract requires an empty list for an image with no region, preserve that position. Omitting it may associate later data incorrectly. Do not confuse “this image has no selected region” with “this image is absent.”
| Input | Original dimensions | Selected region | Validation |
|---|---|---|---|
| Portrait | Read from source | Pixel box or explicit empty list | Correct face or garment area |
| Detail reference | Read independently | Its own region decision | Never inherit portrait coordinates |
| Background | Read independently | As required by task | Check correct input association |
This is an authored preparation record, not a claim that all three inputs or all region counts are supported in every mode.
Draw the converted box before generating
Place the calculated rectangle over a local copy of the original at known dimensions. Check its corners, orientation and intended content. A small visual check can expose swapped axes, a rotated phone image, or coordinates measured after cropping. Ensure the lower-right corner is truly lower and right of the upper-left and that all points fall within the source.
Save this diagnostic overlay separately; do not replace the clean source with it unless the product explicitly expects annotated imagery. The overlay is evidence for the human reviewer, not automatically an executable mask. Confirm whether the selected workflow uses boxes, masks or natural-language localization; those mechanisms differ.
Review the edited and protected regions
After delivery, inspect the target area and the surrounding protected content. Correct coordinates do not guarantee a localized generative change. Record a wrong location separately from an unwanted whole-image alteration, and return to the clean approved source if necessary.
For an Imagild edit, keep the original and region explanation with the brief. Do not assume an external API’s pixel-box format exists in the Imagild interface. Use its actual supported selection controls and preserve evidence of what was selected.