CartVisualCreate account

Does Claid outpaint_by add space to each side or split the amount, and when does resizing happen?

Claid's `outpaint_by` values are added to each corresponding side, not divided between opposite sides. A 1000 × 1000 input with `outpaint_by: "10% 5%"` therefore expands to 1200 × 1100 before any separately requested final resizing. The documented sequence generates the additional area first, then applies width and height. Use this for symmetric background extension, not a one-sided placement requirement.

Published · By CartVisual editorial team

Calculate the expansion on both sides of each axis

Claid's outpaint fit can generate surrounding background rather than merely crop an image or fill unused canvas with a solid color. The outpaint_by option is especially important because it changes how the requested extra area is calculated.

With one percentage or pixel value, Claid applies that amount to both axes. With two values, the first controls horizontal expansion and the second vertical expansion. Each amount is added to both opposite sides.

For a 1000 × 1000 image, 10% 5% means 100 pixels to the left, 100 to the right, 50 to the top and 50 to the bottom. The expanded intermediate dimensions are therefore 1200 × 1100.

The same distinction applies to pixels. 100px 50px adds 100 pixels to each horizontal side and 50 pixels to each vertical side. It does not divide those amounts between two sides.

This makes outpaint_by unsuitable as a direct one-sided extension control. If the creative brief specifically requires additional space only on the right while preserving the existing left boundary, do not represent symmetric outpainting as an exact implementation of that requirement.

Separate generated expansion from final output sizing

Claid documents a second stage: when width and height are specified, those dimensions are applied after the outpainted area is generated. Consequently, calculating the expanded intermediate size does not establish the dimensions of a later resized output.

Omit both width and height when you want only the requested outpaint extension. The outpaint_by note also suggests setting both dimensions to auto, but the general dimension rules prohibit both-auto. Omission is the documented option without that conflict. The outpainting instructions also call for a restorations.upscale method.

Use an illustrative configuration fragment to distinguish expansion from final sizing:

{
  "operations": {
    "resizing": {
      "fit": {
        "type": "outpaint",
        "outpaint_by": "10% 5%"
      }
    },
    "restorations": {
      "upscale": "smart_enhance"
    }
  }
}

Choose the correct operation when the canvas requirement changes

Outpainting is a generated-background decision. Claid's padding operation instead controls surrounding space, and canvas fit can fill extra space using a specified background color. These alternatives do not produce identical representations even if they target similar dimensions.

The documented outpaint_by percentage value cannot exceed 50%; pixel values cannot exceed half the relevant source dimension. The outpaint target also has a documented 16.78 MP ceiling.

If the final destination requires exact pixel dimensions, keep that requirement separate from the outpainting amount. Record both stages and inspect the returned geometry and generated transitions. A larger canvas or correct aspect ratio does not establish source-supported detail or product fidelity.

Next action: calculate the intermediate expanded dimensions first, then decide whether any explicit final resizing is needed.

Illustrative decision: a square product image requiring more scene space

A seller has a hypothetical 1000 × 1000 product image and wants extra studio background around all sides without changing the planned subject placement.

The proposed outpaint_by value is 10% 5%. The horizontal expansion is 100 + 100 pixels and the vertical expansion is 50 + 50 pixels, giving an intermediate 1200 × 1100 composition.

If the destination accepts those dimensions, the seller can plan the no-additional-resize branch. If it instead requires a specific final rectangle, the seller must configure and review the later resizing stage separately.

If the copywriter changes the brief to require 200 pixels of new space only on the right, the seller stops using symmetric outpaint_by as the presumed solution and chooses a different controlled composition workflow.

These are documented arithmetic and workflow branches, not generated-image observations.

Where CartVisual fits

CartVisual offers a separate reference-led image-remix workflow for composition changes. It does not execute Claid outpainting, expose outpaint_by or guarantee preservation of original pixels.

See the current CartVisual workflow and its limitations

Source and evidence scope

Prepared by the CartVisual editorial team with AI assistance. Competitor behavior is documented rather than independently executed for this guide.

Claid: Resizing

Official source snapshot checked .

Claid: Restorations

Official source snapshot checked .

The Claid Resizing reference establishes percentage and absolute dimension behavior. Its Restorations reference supplies the smart_enhance request value. The worked arithmetic describes requested dimensions. Judge delivered pixels, readable text, and product details independently.

Related decisions

Browse ecommerce creative workflows