Upscaling AI Fashion Images for E-commerce: A Pixel Budget
Most fashion images are upscaled to the wrong size. A placement-by-placement pixel budget, a one-pass pipeline, and the sharpening habits that keep a leather grain instead of a plastic sheen.
Upscaling is where a good render quietly becomes a mediocre file. The image on screen looks fine, the client approves it, and then it lands on a product page at 3,000 px wide with a wrinkled zip and skin that reads like vinyl. Nothing was wrong with the render. The file was enlarged to a number nobody needed.
A pixel budget fixes this before the first export.
Where the pixels actually go
Every placement has a real requirement, and it is almost never "8K". Ours:

| Placement | Long edge after crop | Upscale from 2.08 MP | File target |
|---|---|---|---|
| Category tile, 2× retina | 800 px | None | 60–120 KB |
| PDP main image | 1,600 px | Up to 1.3× | 150–300 KB |
| PDP zoom / swatch detail | 2,000 px | Up to 1.6× | 250–450 KB |
| Lookbook spread, print 300 dpi A4 | 3,000 px | 2.2×, careful | 1–2 MB |
| Campaign billboard crop | 4,000 px | 3×, only from a detail frame | 2–4 MB |
The pattern: product pages need less than people think, and print needs more than a single-pass upscale can honestly deliver. Between 1,600 and 2,000 px sits the vast majority of e-commerce work.
The myth of the round number
"Make it 4K" is a request without a destination. 4K could mean 3,840 px wide with a 16:9 crop that throws away the top of a full-body frame. We ask for the placement instead, and derive the number: a 1,200 px wide column at 2× device pixel ratio needs 2,400 px across the image's rendered width — which at 3:4 means a 3,200 px long edge, not 4,000.
Deriving from the placement also tells you when to refuse. If a print spread needs a 3,000 px long edge from a 1,248 px wide render, the honest upscale factor is 2.4×, and at that factor the twill in a denim jacket starts to look like fabric printed on canvas. The answer is a second render framed tighter, not a bigger algorithm.
A one-pass pipeline
| Step | Do | Don't |
|---|---|---|
| 1. Crop | Crop first, at native resolution | Crop after upscaling |
| 2. Resize | One step, Lanczos, to the exact target | Two or three incremental steps |
| 3. Denoise | Leave it alone on texture frames | Run a generic denoiser |
| 4. Sharpen | Radius 0.5–0.7 px, 40–60 %, then fade to taste | Unsharp mask at radius 2+ |
| 5. Export | JPEG q84–88 progressive, or AVIF with fallback | Save as PNG for a 2 MB photo |
Two of those lines carry most of the quality. Cropping before resizing means the upscaler never spends pixels on empty backdrop. And keeping the sharpen radius small is what preserves the difference between leather grain and wax.
A corner at 1:1. Grain, painted edge and saddle stitch are exactly what a badly judged upscale turns into wax.
What breaks when you overshoot
| Artifact | Looks like | Cause | Fix |
|---|---|---|---|
| Halos at edges | Bright line along a coat against backdrop | Large-radius sharpening | Radius under 1 px, reduce amount |
| Plastic skin | Pores gone, cheeks waxy | Denoise after upscale | No denoise; render at higher steps instead |
| Fabric moiré | Wavy pattern in twill or herringbone | Repeated resampling | One pass, exact target |
| Crunchy text on labels | Glyph edges crawl | Sharpening applied to the whole frame | Mask the sharpening to the garment |
| Banding in backdrop | Steps in a grey gradient | 8-bit export after heavy edit | Work in 16-bit until export |
The backdrop banding is the one clients notice first, because a smooth grey field is where compression artifacts have nowhere to hide.
A product frame a zoom crops from. Delivered at 2,000 px from a single pass — anything larger would be a second upscale, not more detail.
Measuring instead of guessing
We check the delivered file, not the render: open the live page, inspect the image's natural width, and confirm it matches the placement's requirement. A file that is 900 px wide in a slot that asks for 1,600 is a soft image on a retina screen even if it looked sharp in the editor.
For the studio side, we also keep the render's native aspect and crop per placement rather than rendering a 16:9 master and cropping 3:4 cards out of it. A master that serves every ratio is a master that is mediocre at all of them.
Serving the budget, not just making it
A file that is the right size is only half the job; the page has to deliver it. For each placement we ship two or three widths in a srcset and let the browser choose, with the largest width matching the budget above.
| Placement | srcset widths | Fallback |
|---|---|---|
| Category tile | 400, 800 | 800 |
| PDP main | 800, 1,200, 1,600 | 1,200 |
| PDP zoom | 1,000, 1,600, 2,000 | 1,600 |
| Lookbook spread | 1,500, 3,000 | 1,500 |
That table also protects the upscale work. A shopper on a phone never downloads the 2,000 px zoom file, so the extra detail costs nothing on mobile, and the desktop reviewer still gets the pixels they paid for. Without it, teams either ship one oversized file to everyone or one undersized file to everyone — both of which waste the effort described in this article.
Red flags in a review
Three questions we ask when someone sends us a file to fix, in order of how often they explain the problem: what is the target long edge, what was the crop, and was the sharpen applied before or after the resize? If the answer to the last one is "before", the file usually does not need a new render — just a clean pass through the pipeline. If the answer is "after, twice", the texture is already gone and the honest fix is a re-render.
When to render again instead
If the target is above 2× the crop's long edge, re-render with the subject framed tighter. A half-body frame at 2.08 MP has roughly twice the pixel density on the garment as a full-body frame, and the difference shows at the first zoom. Upscaling is for delivery, not for detail.