Converting a Photo of a Fabric Pattern into a Flat Textile Swatch

Oct 27, 2026

If you make anything with fabric — upholstery, quilts, bags, home textiles — you have a folder of fabric photos that are useless for anything but memory. Shot on a table at an angle, half in shadow, wrinkled across the middle, sitting next to a coffee cup. What you need is a flat swatch: even light, no perspective, color that matches the actual cloth.

This is a transformation problem, not a photography problem, and it breaks into a predictable order of operations. I do it with the converter at imagetoimage.cn, but the sequence matters more than the tool.

Step one: fix geometry before anything else

Every later step assumes you're working on a rectangle that faces you straight on. So do the perspective correction first — deskew the fabric edges to the frame, crop to the pattern repeat, and get the weave square.

If you skip this and try to remove shadows or boost color first, you'll be correcting light on a surface that's tilted, which means your correction is uneven across the image. Then you'll re-crop and have to do it again. Geometry, then light, then color, then texture. Always that order.

Step two: flatten the lighting, not the weave

Fabric photos almost always have a gradient — one side bright, the other side in shadow, sometimes a hotspot from a nearby lamp. You want to remove that gradient without turning the cloth into plastic.

The trick is to separate low-frequency shading from high-frequency texture. The gradient is low frequency: broad, slow changes across the frame. The weave is high frequency: sharp, local detail. Flattening the gradient means evening out the broad tonal sweep while leaving the fine detail alone.

Most enhancement tools will do a version of this if you ask for even lighting rather than brighter. Ask for brighter, and you'll blow out the highlights and lose the weave. Ask for even, and the tool balances the frame.

Step three: protect the color you actually care about

This is where fabric swatches get ruined. A global color correction — one that shifts the whole image warmer or cooler — will pull your vegetable-dyed mustard into orange or push a deep indigo toward black.

Two rules keep you honest. First, put something white in the frame when you shoot, even a sheet of printer paper, and use it as your white reference. Second, do color work after lighting work, and check the result against the physical cloth under a neutral lamp, not against the previous photo.

If your cloth has a dominant hue you must preserve — a specific madder red, a particular sage — lock that before you apply anything else. In practice this means doing a small test conversion on a crop of the most saturated area before committing to the full image.

Step four: handle wrinkles carefully

Wrinkles are the hardest part, because a wrinkle is both a shadow and a real change in surface angle. Aggressive smoothing will erase them and also erase the weave, leaving you with a flat digital rectangle that doesn't look like cloth anymore.

I prefer a light touch: reduce the big folds and creases, keep the small puckering. Real cloth has slight irregularity, and a perfectly flat swatch reads as a mockup rather than a real material. For most digital use — a product listing, a lookbook, a spec sheet — a subtle surface texture sells the material better than a flawless one.

If a single deep crease crosses the pattern repeat, it's usually faster to reshoot that fabric than to reconstruct the pattern underneath it. Reconstruction guesses at the design, and a guessed repeat is worse than an honest crease.

Step five: make it tileable if you need it to

If the swatch is going to be used as a repeating texture — on a 3D model, a website background, a printed yardage — the edges have to line up. This is a distinct job from everything above, and it's where a lot of otherwise good conversions fall apart.

Do it last, after the color and lighting are final. Ask for edge-aware repetition rather than a mirrored tile; mirrored tiling is obvious on geometric patterns because the repeat has a visible symmetry that doesn't exist in real fabric. Then zoom to the seam and look for a color step. If there's a visible line, the tile is wrong.

What to check before you file it

Three quick checks, in order:

  • Does it look flat? Hold the image next to a pure white rectangle. Any lingering gradient should be barely visible.
  • Is the color right? Compare against the physical cloth, ideally under daylight-balanced light. Photos lie about color in ways your eye doesn't.
  • Is the weave still there? Zoom to 100 percent. If the texture has gone smooth and plasticky, you've over-processed and should back off.

When it's worth redoing the photo

A flat swatch is a transformation, not a miracle. If the original shot has the fabric in hard directional light with a cast shadow across half of it, or if it's blurry at the weave level, you can't recover information that was never captured. Reshoot flat, from directly above, with diffuse light and something white in frame. Ten minutes of shooting saves an hour of pushing pixels.

The order is what matters: geometry, then even lighting, then protected color, then restrained wrinkle work, then tiling. Get that sequence right and the converter on the homepage will do the heavy lifting — it's much better at evening out light than at guessing what color your cloth was supposed to be.

Admin