Magic resize — Smart product-aware resizing, cropping & generative margins

Magic resize understands subject edges and margin rules. It keeps margin 0 where the product touches, and intelligently crops or generates pixels to fit any canvas—without hiding your product.

  • Smart Product Recognition detects silhouettes and edge contact.
  • Adaptive Margins keep sides at 0 where needed; add space only where allowed.
  • Crop + Generate in one go for consistent, brand-safe outputs.
  • Batch-perfect behavior at marketplace or enterprise scale.
Magic resize: multi-angle fashion product with before and after montage and parameter panel
Product-aware margins: sides that touch remain 0; clean space added where allowed.

Smart Product Recognition

Understands silhouettes, limb/strap extremities, and detects edge contact per side to prevent accidental “shaving.”

Adaptive Margin Logic

Keeps 0 where subjects touch the frame; adds margins elsewhere to satisfy brand/marketplace rules.

Crop / Generate Decision

Safely crops when background headroom exists; otherwise generates coherent extensions or stretch for uniform backdrops.

Canvas & Alignment Control

Set Width/Height, per-side margins, Alignment X/Y, and unit (px or %). Anchors guide where extra canvas appears.

Catalog-grade Consistency

Variance is clamped for batch stability across 10 → 10,000 images—ready for PDP, marketplace, and ads.

UI & API

Drive it from the UI or plug into workflows via API for automated pipelines and scheduled runs.

Workflow steps

Three steps from raw assets to standardized outputs. The UI mirrors the engine’s decision logic, so what you set is exactly what ships.

Magic resize workflow: Step 1 parameters, Step 2 output settings, Step 3 batch processing
Step 1

Set your workflow

Choose Width × Height, margins per side, Alignment X/Y, and the unit (px or %). Edge-touch sides auto-lock to 0.

Step 2

Output details

Select format (PNG, JPG, WEBP, AVIF), DPI, and filesize profile. Add multiple outputs per image if needed.

Step 3

Upload & batch

Drag a folder or images and run at scale. The engine selects crop vs. generate per image and standardizes the set.

Before → After: margin-aware outputs

Observe arrow markers showing where margins are added vs. locked to zero. The subject remains prominent, centered by your alignment rules.

Before and after grid with directional arrows and parameter panel for Magic resize
Consistent spacing without sacrificing subject visibility.

UI → Engine mapping

Every control has a predictable, side-aware effect in the engine.

UI Control Engine Behavior Notes
Width / Height Sets target canvas & aspect policy Determines crop/generate need
Margins (Top/Right/Bottom/Left) Minimum clear-space per side Edge-touch overrides to 0
Alignment X / Y Subject anchoring for expansion e.g., Center/Bottom for footwear
Unit (px / %) Margin scaling math % is relative to final canvas
Policy: crop / generate Decision & fallbacks “Safe crop” avoids subject loss
Stretch preference Monochrome/flat backdrop stretch Great for studio catalog shots

Recommended presets

Start with these common e-commerce targets. You can tweak margins and alignment per category.

Marketplace Square

2000×2000 • 5% all sides • Center/Center

PDP Portrait

1500×2000 • 60px bottom • Center/Bottom

Banner Wide

2400×1200 • 4% LR / 2% TB • Center

Social Reel Cover

1080×1920 • 3% top / 5% bottom • Center/Bottom

FAQs

Will this change my product proportions?

No. The subject scale is preserved. Only background area is cropped or generated based on your rules.

Can I mix px and % for margins?

Stick to one unit per run for predictability. Use separate runs if you need mixed behavior.

Does it support background stretch instead of AI generation?

Yes. “Stretch preference” is ideal for monochrome or uniform studio backdrops.

How are transparent PNG edges treated?

Transparent pixels are considered background. Edge-touch detection still applies, so margins can lock to 0 on those sides.

Is this safe for complex silhouettes (straps, hair, handles)?

Yes. The engine is silhouette-aware and avoids trimming fine extremities. If cropping is unsafe, it switches to generate.

Resize, crop & generate — all in one run

Ship catalog-perfect images faster. UI or API—your choice.