menu

How to Scan Fabric and Make a Seamless Repeat

How to Scan Fabric and Make a Seamless Repeat

How to scan a fabric and turn it into a perfectly straight, seamlessly repeating design for digital printing - by hand in Photoshop or Photopea, or with an AI assistant.

Got a favourite fabric you'd love to have printed again - maybe a vintage ticking, an old curtain or a cloth you can't buy any more? The best way to reproduce it is to scan it and turn the scan into a seamless repeat, ready for digital printing.

It sounds simple, but fabric is never perfectly flat or straight. Stripes bow, the weave drifts and creases cast shadows.

This guide walks through the whole process using a real example - a red and navy ticking stripe - from the first scan to a perfectly straight, seamless tile. You can do it by hand in Photoshop or the free Photopea, or let an AI assistant do the heavy lifting with our copy-and-paste prompt.

Skip to the AI prompt

Contents

Six steps: scan, straighten, de-warp, crop to repeat, match texture, test the repeat
The six steps from fabric to a print-ready repeat

Just because you own a piece of fabric doesn't mean you own the design on it.

  • Most fabric designs are protected by copyright, and in the UK they can also be protected by design right or a registered design.
  • Buying a fabric, or scanning it, does not give you permission to reproduce the design.
  • Traditional, generic patterns (plain ticking stripes, simple ginghams, basic checks) are usually fine, but a specific designer's print or a branded fabric is not.
  • Your own designs, designs you've licensed, and genuinely out-of-copyright designs are all fine.

If you're not sure, ask the designer or manufacturer, or check our Guide to Copyright and What is Okay to Print.


1. Scan it - don't photograph it

We highly recommend scanning rather than photographing your fabric.

A phone or camera sees the fabric from a single point above it, so the image is never truly flat. The edges bow, the far side shrinks (keystoning), the lighting is uneven and there's no reliable way to know the real size. You can correct some of this afterwards, but you'll be fighting it at every step.

A flatbed scanner gives you a flat, evenly lit, in-focus image at a known scale - perfect for a repeat that has to print at the right size. It's much more likely to get a good colour match, as a scanner contains its own light source and therefore knows pretty reliably what colour it's scanning.

Comparison of photographing fabric versus scanning it on a flatbed scanner
Photographs add distortion, shadows and guesswork. Scans are flat, even and to scale.

Scanner settings

  • Resolution: 600 dpi (300 dpi minimum). This captures the yarns and weave in detail. You can always reduce it later - we recommend at least 180 dpi for printing at the original size.
  • Colour: 24-bit colour (RGB)
  • Turn off auto-enhance, sharpening, descreening and "dust removal" - they can smear the weave.
  • File type: TIFF or PNG. Avoid JPG for the master scan.
  • Scale: 100% - never scale up in the scanner.

Preparing the fabric

  • Press it. Iron out creases first - every crease becomes a shadow you'll need to remove later.
  • Face down, flat on the glass. Close the lid and place something heavy on top to keep it flat.
  • Back thin fabrics. Put white card behind sheer or thin fabrics so the background colour is consistent.
  • Add a ruler at the edge of the scan bed if you can. It makes it easier to double check the size later.

2. Capture the whole repeat

To reproduce a pattern you need at least one full repeat in each direction - and ideally two or more. More repeats make it much easier to measure the repeat accurately and give you spare fabric to blend the edges with.

Our ticking has a horizontal repeat of about 11 cm, so a single A4 scan holds more than two and a half repeats across:

Original flatbed scan of a red and navy ticking stripe
The original 600 dpi scan. It looks straight - but it isn't quite (more on that below).

If your repeat is bigger than your scanner, scan it in overlapping sections and stitch them together digitally:

Scanning a large fabric in two overlapping sections and stitching them together
Overlap each scan by 20-30% so there's plenty of detail to line them up
  • Keep the fabric still and move it as little as possible between scans - slide the scanner, or slide the fabric carefully along a straight edge.
  • Use the same settings for every scan.
  • Photoshop: File > Automate > Photomerge, choose Reposition as the layout (this moves the scans without bending them), and tick Blend Images Together.
  • Photopea: open both scans as layers, set the top layer's blend mode to Difference and nudge it with the arrow keys until the overlap goes black. Then switch back to Normal and use a soft layer mask to blend the join.

3. Get it as straight as possible

The straighter the fabric is on the scanner, the less correction you'll need later - and every correction costs a little sharpness.

  • Line the selvedge or a strong stripe up with the edge of the glass, or use a set square.
  • Gently pull the fabric straight along the grain - don't stretch it on the bias.
  • For slippery fabrics, tape or pin the edges to a sheet of card first.

Even so, it's very rare to get a scan that's perfectly straight. There are two kinds of problem to look out for:

Three examples: straight stripes, skewed stripes which need rotating, and bowed stripes which need de-warping
A skew is fixed with a simple rotation. A bow or wobble needs de-warping.

Tip: drag guides onto your scan (View > Rulers, then drag from the ruler) and line them up with the edge of a stripe. Any drift is instantly obvious.


4. Straighten

First, rotate the scan so the pattern runs square.

Photoshop

  1. Pick the Ruler tool (hidden under the Eyedropper, shortcut I).
  2. Drag a line along the edge of a long stripe or a line of the weave, as long as you can.
  3. Click Straighten Layer in the options bar.

Photopea

  1. Drag a guide to the edge of a stripe at the top of the image. Note the stripe's X position at the top and at the bottom (the Info panel shows the cursor position).
  2. Work out the angle: angle = atan(difference in X ÷ height). For example, a 20 px drift over 4,000 px is atan(20 ÷ 4000) = 0.29°.
  3. Edit > Free Transform (Alt + Ctrl + T), type the angle into the Angle box in the top bar (try the opposite sign if it gets worse) and press Enter.

Rotating leaves slightly empty corners - you'll crop them away later.


5. De-warp

This is the step most people miss. Fabric stretches and relaxes, so even a well-straightened scan often has stripes that bow or wander.

Our ticking scan was a good example. It looked straight by eye, but the stripes actually curved by about 1.5 mm between the middle and the edges - not much, until it repeats every 18 cm down a whole roll.

Drag the slider to compare the original scan with the de-warped version. The pink guides are perfectly straight:

Original scan with straight guides - the stripes drift away from the guides De-warped scan with straight guides - the stripes follow the guides exactly

The correction isn't the same everywhere, which is why a simple rotate or skew can't fix it. This map shows how far each part of the scan had to move sideways:

Map of the sideways correction applied across the scan, from -0.4 mm to +1 mm
The stripes were bowed: the top and bottom needed moving up to 1 mm relative to the middle
The same stripes at the top, middle and bottom of the scan, before and after de-warping, against green guide lines
The same stripes at the top, middle and bottom of the scan. Before: they wander across the guides. After: they line up.

Photoshop

  1. Place vertical guides along the edges of a few stripes, right across the image.
  2. Convert the layer to a Smart Object (right click the layer) so you can tweak the warp later.
  3. Edit > Transform > Warp. Use the Split buttons in the options bar to add grid lines where the stripes bend, then drag the grid points until every stripe sits on its guide.
  4. For small local wobbles, use Filter > Liquify with the Forward Warp tool, a large brush and low pressure (around 10-20%).

Photopea

  1. Place guides along the stripe edges as above.
  2. Edit > Free Transform, then click Warp in the top bar. Drag the control points to pull the stripes onto the guides.
  3. Use Filter > Liquify for any remaining local wobbles.

Tip: only move things sideways for vertical stripes (or up and down for horizontal ones). Pushing in both directions changes the stripe widths.


6. Find and crop the repeat

Now you need to find exactly where the pattern starts to repeat itself. Measuring "by eye" is rarely accurate enough - a 1 pixel error becomes a visible step every time the design repeats.

The straightened scan with one horizontal repeat of 112.1 mm highlighted
One full repeat of our ticking: 2647 pixels at 600 dpi, or 112.1 mm

The Difference trick (Photoshop and Photopea)

  1. Duplicate the layer (Ctrl + J).
  2. Set the top layer's blend mode to Difference. Where the layers match, the image goes black.
  3. Select the Move tool and nudge the top layer sideways with the arrow keys (Shift + arrow moves 10 px at a time).
  4. When the whole image goes as dark as possible, the pattern is lined up with itself. The distance you moved is your repeat width. Do the same vertically for the repeat height.

Then crop exactly one repeat (or a whole number of repeats):

  • Use the Rectangular Marquee with Style: Fixed Size set to your repeat, then Image > Crop.
  • Put the edges of the crop in the plainest areas you can, such as the background between stripes. Joins are much easier to hide there.
  • Avoid hems, selvedges, stains and the edges of the scan.

Stripes only? If your pattern only repeats one way (like our ticking), you can choose any height you like. Take as tall a clean section as you can, so the texture repeats less often.


7. Make the edges seamless

Even with a perfect crop, the texture won't match at the edges. The weave, the shading and any creases are different on each side, so a simple crop shows a line every time it repeats:

Simple crop tiled - a visible horizontal join and change in shading Texture matched tile - no visible join
Where four tiles meet, at 100%. Left: simple crop - the join and the change in shading are obvious. Right: texture matched - can you find the join?

The classic way to fix this is the Offset method. It moves the edges into the middle of the image, where you can see them and paint over them:

The Offset method: crop, offset by half with wrap around, heal the join, offset back and test
Offset, heal, offset back - then test

Photoshop and Photopea

  1. Filter > Other > Offset. Enter half the image width and half the height, and choose Wrap Around. The edges are now a + shape in the middle.
  2. Use the Clone Stamp, Healing Brush and Patch tool (Photoshop) or Clone Stamp and Spot Healing Brush (Photopea) to blend the texture across the +. Sample from nearby areas of the same colour, and work along the weave.
  3. Don't touch the stripe edges where they cross the horizontal join - clone across them in line with the stripe, or they'll wobble.
  4. Fix big changes in shading too. A soft, low opacity clone (around 20-30%) or a masked Curves adjustment layer works well.
  5. Remove dust, specks and stray threads with the Spot Healing Brush. A speck that's barely visible once becomes an obvious grid of dots when it repeats.
  6. Run Filter > Other > Offset again with the same values to put everything back.

Tip: In Photoshop, View > Pattern Preview tiles your image live while you work, so you can see the joins as you fix them.

Here's our finished tile, tiled six times. The joins are invisible even at 100%:

100% crop where four tiles meet - no visible join 100% crop of the top to bottom join crossing the stripes - no visible join
The four-way corner (left) and the top-to-bottom join running across the stripes (right), both at 100%

8. Keep the texture, or remove it?

A scan captures the look of the fabric - the yarns, the twill and the little irregularities - as well as the design. When you print it, you're printing a picture of that texture onto a new fabric.

Drag the slider to compare the two approaches:

Tile with the fabric texture kept Tile with the texture removed - flat, solid colours
Texture kept Texture removed
Looks like A faithful copy of the original cloth A crisp, freshly designed stripe
Best on Smooth fabrics (cotton poplin, satin, jersey) Textured fabrics (linen, canvas, panama) - the real weave shows through
Watch out for Repeating creases, shadows and specks Losing the character of a vintage piece
Effort Seamless texture takes care Easy for stripes and checks, harder for complex prints

Not sure? Make both and order a sample of each - it's the only way to really know.

Removing the texture

  • Stripes and checks: the cleanest way is to rebuild them. Use the Eyedropper to pick each yarn colour, then draw each stripe as a filled rectangle the same width as the original.
  • Other designs: Filter > Noise > Median (radius 3-10 px) or Filter > Blur > Surface Blur smooth the weave while keeping edges. Image > Adjustments > Posterize can then reduce it to flat colours.
Finished textured tile repeated three across and two down Finished flat colour tile repeated three across and two down
Both finished versions, each tiled 3 across and 2 down

9. Test the repeat

Never trust a single tile - always look at it repeated.

  • Tile it at least 3 x 3 and check every join at 100% zoom.
  • Check the gaps between stripes or motifs are the same across a join as everywhere else.
  • Step back and look for patterns you didn't intend - a dark patch, a speck or a crease that forms a grid.

Here's what our ticking looks like as a simple crop - the shading jumps and repeated marks are easy to spot once it's tiled:

Simple crop tiled - visible joins, shading changes and repeating specks Finished tile repeated - seamless
Simple crop (left) vs finished tile (right)

The easiest final check is to upload it to our create tool and choose the Regular repeat. You'll see a preview of your design repeated across the fabric, at its real size, before you order. We always recommend ordering a sample first.


The AI-friendly way

Everything above can also be done by an AI assistant that can edit images and run code - for example Claude, ChatGPT or Gemini.

That's how we made the example in this guide. The AI measured the position of the stripes in over 2,000 small patches across the scan and calculated exactly how far each part of the image needed to move. It then:

  • straightened the stripes from a 24 px wander (about 1 mm) to under 1 px on average
  • found the repeat to a fraction of a pixel (112.08 mm)
  • matched the edges by cutting a wiggly join along the threads, so it's invisible
  • evened out the creases and removed specks
  • produced the textured and flat colour versions you've seen above

Copy the prompt below and give it to your AI assistant along with your scan:

auto_awesome Prompt for your AI assistant
I'm attaching a scan of a fabric with a repeating pattern. I want to reproduce the original fabric as closely as possible with on-demand digital fabric printing at Prinfab (prinfab.com). Please turn the scan into a print-ready, perfectly straight, seamlessly repeating tile.

GROUND RULES
- Work only with the real pixels of my scan: rotating, warping, cropping, retouching and blending are fine. Do NOT redraw, regenerate or "reimagine" the pattern with an image generation model - it must match the original exactly.
- If you can't edit images or run code yourself, tell me now and stop. Don't guess or describe what the result "would" look like.
- Never overwrite my original scan. Work on copies.
- Before you start, tell me the image size in pixels, the DPI stored in the file, and the real-world size that implies. If the DPI is missing or looks wrong, ask me how big the scanned area really is.
- Stop and ask me if: the scan doesn't contain at least one full repeat in each direction, the repeat is unclear, or something would mean changing the design rather than correcting it.
- Remind me to confirm that I have the right to reproduce this design.

STEP 1 - MEASURE THE REPEAT
- Measure the exact repeat width and height in pixels and mm by matching the pattern against itself (e.g. autocorrelation), not by eye. Give sub-pixel accuracy if you can.
- Tell me the repeat type (regular/block, half drop, half brick, etc.). If it only repeats in one direction (e.g. stripes), say so.

STEP 2 - STRAIGHTEN
- Rotate so the lengthwise threads / main pattern lines are exactly vertical and the crosswise ones exactly horizontal.

STEP 3 - DE-WARP
- Fabric is rarely perfectly flat. Check whether lines bow, wobble or drift anywhere in the image by measuring the local position of the pattern across a grid of small patches.
- Fit a smooth correction and remap the image so every line is straight and evenly spaced. Don't change the overall scale.
- Report the maximum and average deviation from straight, before and after, in px and mm. Aim for under 1 px.

STEP 4 - CROP EXACTLY ONE REPEAT
- Crop exactly one repeat (or a whole number of repeats) in each direction.
- If the repeat isn't a whole number of pixels, resample by the smallest possible amount (well under 0.5%) so it is, and tell me the factor.
- Put the crop edges in the plainest areas, avoiding hems, selvedges, creases, stains and the edges of the scan.

STEP 5 - MAKE THE EDGES SEAMLESS
- Left must join right, and top must join bottom, with no visible line, step, change in brightness or break in the weave.
- Blend across each edge using the real fabric beyond the crop (e.g. a minimum-error seam cut through an overlap, with a narrow feather) so the yarn/weave texture continues across the join.
- Even out large-scale shading from creases or uneven lighting (brightness only, don't shift the colours).
- Remove dust, specks, lint, loose threads and stains - anything that would form an obvious grid when repeated.

STEP 6 - MAKE TWO VERSIONS
- A) TEXTURED: the real fabric texture kept, as above.
- B) TEXTURE REMOVED: the same design as clean, flat areas of solid colour (one colour per yarn colour), with crisp edges, at exactly the same size and repeat. Tell me the colours you used as sRGB hex values.

STEP 7 - CHECK YOUR WORK BEFORE SHOWING ME
- Tile each version at least 3 x 3 and inspect every join at 100% zoom, including the corner where four tiles meet.
- Measure the spacing of the pattern across each join and confirm it matches the spacing everywhere else.
- If anything is visible or out by more than 1 px, fix it and check again. Only continue when you're certain both versions repeat seamlessly.
- Show me the 3 x 3 tiled previews and 100% close-ups of the joins.

FILE SETTINGS FOR PRINTING
- Flattened, RGB, sRGB colour profile embedded, no layers, no transparency.
- Lossless TIFF or PNG at full resolution. If you reduce the resolution, keep at least 180 DPI at actual size and update the DPI so the real-world repeat size stays exactly the same.
- Under 200 MB per file.
- Clear names, e.g. design-name_repeat-textured_112x179mm_600dpi.tif

SAVE, UPLOAD AND REPORT
- Save the original scan and both finished files together in a new, clearly named folder on this device that won't be cleaned up automatically (for example Documents/Fabric Repeats/design-name/), with a short notes file listing the repeat size, DPI and every change you made. Tell me exactly where they are.
- If you can use a web browser: go to https://prinfab.com/printed-fabric, upload both versions, choose the "Regular" repeat and check the preview shows the design at its real size with no visible joins. Do NOT place an order or enter any payment details - stop there so I can check the repeat and order myself.
- If you can't use a browser, give me the files and I'll upload them myself.
- Finish with a short summary: repeat size, how straight it is now, and anything you weren't sure about.

A few tips for working with AI:

  • Check its work. Look at the tiled previews yourself, and compare the result with your original scan side by side.
  • Watch out for image generators. Some AI tools "redraw" images rather than editing them, which can subtly change your design. The prompt asks it not to, but keep an eye out.
  • Ask follow-up questions. If a join is visible or the colours look off, tell it - just like you would a person.

Recommended file settings

  • File type: TIFF or PNG (JPG at maximum quality is OK for the final upload)
  • Colour mode: RGB, with an sRGB profile embedded
  • Resolution: 180 dpi or more at actual size
  • Flattened: no layers or transparency
  • Size: files up to 200 MB can be uploaded on our create tool

Summary checklist ✅

  • ✅ Check you have the right to reproduce the design
  • ✅ Scan at 600 dpi - don't photograph
  • ✅ Capture at least one full repeat (stitch overlapping scans if needed)
  • ✅ Get the fabric as straight as possible on the glass
  • ✅ Straighten, then de-warp until every line follows a guide
  • ✅ Find the repeat with the Difference trick and crop exactly one repeat
  • ✅ Make the edges seamless with Offset and healing - and remove specks
  • ✅ Decide whether to keep the texture or remove it
  • ✅ Tile it, check every join at 100%, and order a sample

Harry Mustoe-Playfair 4 Dec 2026