How to Turn a Texture into a Seamlessly Tiled Background

Tiled backgrounds are great for both website backgrounds and in all kinds of Photoshop work. They are particularly useful when working with textures where you need a larger overall background than the small image you have to work with. In this quick tutorial I’ll take you through taking a texture and turning it into a background image ready for seamless tiling. It’s a useful little technique that’s been around forever. We need this technique for today’s other tutorial – How a Simple Layout Can Be Mixed ‘n’ Matched with Patterns, Photos and Backgrounds.

Why you can’t just tile any old photo

So in this tutorial we want to create a tiled background of a grass texture. There’s a fantastic photo of grass on Flickr by 100kr

which we can use. However if we just tile the image as is, the result isn’t very good. As you can see above it’s very clear where the image is being repeated and the dark patches look pretty weird. So to turn that photo into a tiled background we need to first remove any irregularities, and then make the edges blend in to each other.

Step 1

So the first step is to grab the main image and then crop into a section that doesn’t have the really dark corner patches. Something like the box shown above.

Step 2

Here is our segment. I’ve actually shrunk it down a bit so that the texture isn’t so oversharpened. Now although it’s mostly evenly coloured, we could do with lightening the edges. The more even we can get the image the better as slight differences are quite glaring when the background is tiled.

So just grab the Dodge Tool (O) and with a large soft brush, just gently brush over the left and right edges to lighten them up a shade. Don’t go overboard though as the grass will look washed out.

Step 3

As you can see above the grass is looking a lot more uniformly coloured. But there is a little leaf in the top left, that is going to be a dead giveaway if the same leaf appears over and over again, so we should get rid of it. To do this grab the Patch Tool (J) and draw a shape around the leaf then drag with your mouse to get an area nearby to patch it with. (Note that the Patch tool should be set to Source and not Destination, otherwise you use it slightly differently)

Step 4

So our background is looking pretty nice and uniform now. We just need to make the edges bleed into each other. So duplicate the grass layer. Then move the first layer to the left and the second layer to the right. Keep doing this until you can see both layers with a white gap in between. Now bring them together so the right most edge of the first layer touches the left most edge of the second layer.

Step 5

Here you can see the two layers almost touching. Bring them together so there isn’t any white in between and merge the two layers into one.

Step 6

Now we again use the patch tool to draw a rough shape around the edge where the two layers meet, then use your mouse to drag a nearby area over to patch it up.

Step 7

The patch tool makes this sort of operation really easy, especially with a background as noisy as this grass. As you can see unless you look really carefully it’s not apparent where the blend line is. If you wanted to you could go into fine detail and clone individual blades of grass – but this is fine for our purposes.

Step 8

Now we repeat the same process vertically. So duplicate the layer and move one down and one up until the bottom and top edges meet. Merge the layer together and use the patch tool to get rid of the edge.

Step 9

And now we are ready for tiling!

The reason this will work is we’ve effectively gotten rid of those edges, the new edges of the document already match up because we moved the layers equally left and right so that the right edge of this document actually is the next pixel along from the left edge.

Step 10

So press CTRL-A to select everything and go to Edit > Define Pattern.

Step 11

Now we give the pattern a name

Step 12

Now on any layer if you select blending options and tick the Pattern Overlay box you can choose from your set of custom patterns as shown, including the grass one we just made. In the image above you can see me applying the pattern into a website background.

Of course you should also save the pattern image as a PSD or JPG itself as you may need it as a standalone image. For example if you were to use it as a background image in an HTML document you’d need the single JPG image, not a Photoshop "Pattern".

Finito!

Here’s our tiled grass. As you can see there is a bit of a dark patch that gives it away, but because I’m going to be using this as a background to a website it’s not a big deal as there will be stuff over the top. Nonetheless you could easily go back and patch up that spot to make it more seamless.

Update – Filter > Other > Offset

Thanks to the commenters who pointed out that there is in fact a simpler way to offset the background using a filter! Just go to Filter > Other > Offset and select a pixel amount to move the image by both horizontally and vertically. Thanks for the tip guys! I learn something new everyday :-)

Part of Web Design Week

This week our sister site ThemeForest launched a whole new category of items to sell that are particularly relevant to PSDTUTS readers – namely Photoshop Templates. The new category means you can now design and sell Photoshop designs, as well as regular Web Templates and WordPress themes to earn a side or even full income. And on the flip side if you’re coming up short on inspiration, you can get a kickstart by grabbing a PSD design from ThemeForest. So to give the new category the launch it deserves, all this week I’ll be bringing you articles and tutorials on web design as part of our PSDTUTS Web Design Week.

Related Posts

Add Comment

Discussion 79 Comments

Comment Page 2 of 2 1 2
  1. I always use that filter. It’s very useful!

  2. Patternhead says:

    +1 for the offset filter :)

  3. KSiimson says:

    In the GIMP, do this:

    1) Crop the area that is going to be your texture
    2) Filter > Map > Make Seamless
    3) Done

  4. xenocide702 says:

    i just use gimp’s make seamless for tiling, then move it back to photoshop for touch-ups ;)

    true it’s not perfect, but looks good enough, thanks for the post :)

  5. CgBaran Tuts says:

    Very useful tutorial thanks

  6. okan özkan says:

    Very very thanks.

  7. Cool tutorial dude!

  8. Brandon says:

    Thanks for this!

    With a bit mucking around it can look really good in final designs.

  9. diezko says:

    Very very nice, thank you very much.

  10. Snurf says:

    This has been a great help for me thanks.

  11. Master says:

    Effect > Shear
    Rotate 90
    Effect > Shear

    done

  12. Amine says:

    I really loved that tutorial … but too long for me ^^’ so i used your final render, i’ll put the link and precise that i took it from PSDtuts .. take care ô/

  13. OSoSLO says:

    For a much faster and easier way to generate seamless textures, check out the free, fully-functional 30-day trial of EZTiler. It can create seamless textures from virtually any photograph or graphic image.

  14. Rob says:

    Very nice! Will be trying that asap!

  15. nexo says:

    Very very nice, thank you very much.

  16. wow thanks so much , very nice

  17. That one guy says:

    To get rid of most of the lighting seams you can use “Filter > Other > High Pass” and then “CTRL-Shirt-F” with the Luminosity mode. But it might look better if you do this about 2-3 times.
    And as a final action, it might be better to downsize the texture.

  18. Cybernoxa says:

    Hi there,
    Gr8 tut :)
    I think there’s a faster and better way to ‘lighten’ the edges. Just use Clone Stamp Tool [S] and grab some grungy brush – then with chaotis movements stamp the darker areas

  19. Nice!

    but not all textures could become that great

    it need something like grass or maybe fur but

    some other textures cant be done by that way

    but anyway your tut is great thanks

  20. Have just reading this one

    http://psd.tutsplus.com/tutorials/interface-tutorials/photoshop-paper-texture-from-scratch-then-create-a-grungy-web-design-with-it/

    and easily, do this tuts by duplicating and moving the layer, then merge them, done.

    Cool tut, very simple.

  21. Lenny says:

    thanks alot, really helpful

  22. Thanks a lot for this useful Photoshop tutorial. I will try this as early as possible…
    I just use Photoshop pen tool to clip all my images. Its a great tool i rarely found on other Photo editing software….

    Here are some link you can get more info of clipping path for your images.

    http://www.colorexpertsbd.com/
    http://imagemasking.wordpress.com/2009/09/01/clipping-path/

  23. André says:

    Thanks a lot, the idea’s simple and also great, although that grass is not perfect.

  24. Lorenzo says:

    Very Nice

Comment Page 2 of 2 1 2

Add a Comment