PICTURE AS PAINT. Most magazine articles written. Creating a seamless, tileable texture in GIMP KNOW-HOW. Brightness. From Photo to Tile

Similar documents
Improving digital images with the GNU Image Manipulation Program PHOTO FIX

GIMP (GNU Image Manipulation Program) MANUAL

Retouching Portraits in Photoshop

Using Adobe Photoshop

Using Adobe Photoshop

Extreme Makeovers: Photoshop Retouching Techniques

Using Gimp to Fix Chain Shirt 5: An armor reskinning tutorial for NWN2 by Barrel of Monkeys Version 1: July 7, 2008

Creating a Watercolor Painting From a Photo. Open the photo you want to appear to be a watercolor painting. I am using the photo below:

Painting Special Effects on Photographs

PHOTOSHOP & ILLUSTRATOR BOOTCAMP

Adobe Photoshop CC 2018 Tutorial

By Washan Najat Nawi

Photoshop Filters. Applying Filters from the Filter Menu

Unit 7 : Image Painting, Editing and Layers

11 Advanced Layer Techniques

Learning Photo Retouching techniques the simple way

Module All You Ever Need to Know About The Displace Filter

Photoshop CC Editing Images

CSCI Lab 6. Part I: Simple Image Editing with Paint. Introduction to Personal Computing University of Georgia. Multimedia/Image Processing

Reveal the mystery of the mask

The horse image used for this tutorial comes from Capgros at the Stock Exchange. The rest are mine.

Adobe Photoshop CS5 Tutorial

Sharpening is an essential final step before output. But sometimes, you don t want to

Photoshop CC: Essentials

Realistic Skin Smoothing

A quick note: We hope that you will find something from the Tips and Tricks that will add a little pizazz to your yearbook pages!

Workspace. Workspace

Challenge Image: Blur the Background

Creating a Contrast Mask. Text and images Copyright (C) 2002 Eric R. Jeschke and may not be used without permission of the author.

Professional Photograph Restoration 50 Points

Create a Beautiful Abstract Portrait in Photoshop - Psd Premium Tutorial

PhotoFiltre. Reverse foreground/background colors. Background & foreground colors. Set default foreground/background colors. Color choice palette

Adobe PhotoShop Elements

Tips & Techniques - Materials

Basic Digital Dark Room

GETTING STARTED. 0 P a g e B a s i c s o f A d o b e P h o t o s h o p A g a P r i v a t e I n s t i t u t e f o r c o m p u t e r s c i e n c e

ADOBE PHOTOSHOP CS 3 QUICK REFERENCE

Lesson 16 Text, Layer Effects, & Filters

Contents: Bibliography:

2. Advanced Image Editing

Creating Photo Borders With Photoshop Brushes

For customers in USA This device complies with Part 15 of the FCC rules. Operation is subject to the following two conditions:

Adobe Photoshop CS5 Layers and Masks

Preparing Photos for Laser Engraving


Downloaded From : Working with Photoshop 7.0

Compositing. Compositing is the art of combining two or more distinct elements to create a sense of seamlessness or a feeling of belonging.

Martin Evening Adobe Photoshop CS4 for Photographers. Client: ET Nail Art Model: Karen Bookings Makeup: Camilla Pascucci

Project 8: Nice Close-Up

1.1 Current Situation about GIMP Plugin Registry

Filters. Learning Objectives. Introduction

Turning Photograph Into Cartoon-Style Picture. Digital Media I West High School Susan M. Raymond

IMAGE CORRECTION. You can find this and more information with video tutorials at

The original photo. The final result.

2. Picture Window Tutorial

Photo Effects & Corrections with PhotoFiltre

Tablet overrides: overrides current settings for opacity and size based on pen pressure.

CREATING ARTWORK TUTORIAL

Digital Design and Communication Teaching (DiDACT) University of Sheffield Department of Landscape. Adobe Photoshop CS5 INTRODUCTION WORKSHOPS

Contents. Introduction

2.11 CASTING LIGHT THROUGH A WINDOW

Creating Pastel Images and other effects in Photoshop

PROFESSIONAL PHOTOGRAPH RESTORATION WORKFLOW

Using Adobe Photoshop

Photoshop CS2. Step by Step Instructions Using Layers. Adobe. About Layers:

This tutorial will show you how to change your images into a cool dirty grunge design, which could be used for posters, prints, CD covers, etc.

INTERMEDIATE PHOTOSHOP: FAMILY PHOTOS

Tutorial Another Rainy Day

Photoshop Elements Hints by Steve Miller

Improve your photos and rescue old pictures

Corel PHOTO-PAINT BERNINA Page 1 DL

15 Photoshop Tips. Changing Photoshop rulers from inches to picas

Exploring Photoshop Tutorial

ADOBE PHOTOSHOP CS TUTORIAL

GETTING STARTED MAKING A NEW DOCUMENT

Create a Street Art Style Illustration By CorelDRAW Master Stefan Lindblad

Logo Contest Pic. A Foray into Photoshop. Contributed by: Eric Rasmussen a.k.a. Sylvanite

Using Adobe Photoshop

An Introduction to Layers, Masks and Channels in Photoshop

FLAMING HOT FIRE TEXT

An Introduction to Photoshop 6. Photoshop. retouching applications. images, Lightweight version: Photoshop Elements

Inverted Colors Photo Effect With Photoshop

WORN, TORN PHOTO EDGES EFFECT

Combine Black-and-White and Color

Recitation 2 Introduction to Photoshop

PHOTOSHOP INVERTED COLORS PHOTO EFFECT

Creating Digital Illustrations for Your Research Workshop IV Illustration Demo Part II

ADD A REALISTIC WATER REFLECTION

Adobe Lightroom CC Tutorial

Texture Editor. Introduction

Maine Day in May. 54 Chapter 2: Painterly Techniques for Non-Painters

Figure 9.10 This shows the File Scripts menu, where there is now a new script item called Delete All Empty layers.

Turning a Photo into a Painting by Jack Davis & Linnea Dayton

Introduction to Photoshop

Registering and Distorting Images

What is real? What is art?

EXTREME CONTRAST PHOTO EFFECT

S e a m l e s s C o l l a g e I m a g e

PHOTOTUTOR.com.au Share the Knowledge

Camera Raw software is included as a plug-in with Adobe Photoshop and also adds some functions to Adobe Bridge.

Transcription:

Creating a seamless, tileable texture in GIMP PICTURE AS PAINT Graphic artists often face the problem of turning a photograph into an image that will tile over a larger surface. This task is not as easy as it sounds, but if you re up for the challenge, this tutorial will give www.sxc.hu Most magazine articles written on the subject of GIMP (GNU Image Manipulation Program) start with the basics and don t get much further. In this article, we ll take you past the first steps and show you how the experts use the GIMP to address a very practical problem: turning a simple photograph into an image you can use to tile a surface. From Photo to Tile One of the most common defects in photographs is the presence of uneven THE AUTHOR you a first-hand look at some advanced tools in the GIMP toolkit. BY GAURAV NAWANI Gaurav Nawani is a graphic artist at IronCode Software. He has a keen interest in open source technologies. Gaurav s website can be reached a http:// www. geocities. com/ gauravnawani. He can be contacted at nawani_g@yahoo.co.in brightness in the image. In Figure 1, for instance, the right part of the image is brighter, and the left part is darker in comparison. If you used the image in Figure 1 to tile a surface, you would soon notice the unwanted variations caused by uneven brightness. To explore this problem, I have changed the offset of the image. The previous edges (left and right) of the image are now wrapped at the middle of the image (Figure 2). The contrasting brightness at the centered edges is clearly visible. This image, if used directly as a tiled texture, would produce discontinuities that would catch the viewer s eye. Although you might be tempted to start working on the image seams right away, this may not a good idea. Even after you spend time modifying the image, you will still have to deal with the uneven brightness and the patches that might come up during modifications. Brightness In order to simplify the tiling process, we first need to check whether the image is free from highlight/ brightness defects. Reducing these defects to controllable limits will reduce the manual work later on because it is easier to create a seam- High Pass Filter The idea behind our makeshift high pass filter is simple. The image contains the data that can be used to extract both the extreme highlight (brightness) and lowlight (darkness) information. Using this information, we can reduce the variance between the two extremes by applying the inverted highlight information over the original image. This will result in the canceling of opposite highlights, and the image thus formed will have a reduction in the brightness of previously bright regions and an increase in brightness of previously dark regions. This process is also called equalizing the image highlights. 44 ISSUE 58 SEPTEMBER 2005 W W W. L I N U X- M A G A Z I N E. C O M

KNOW-HOW Figure 1: An image of a wood surface. less tile from an equalized image. To equalize the highlights, we will use the high pass filter technique on the image. (See the box titled High Pass Filter. ) Unfortunately, the GIMP does not have any built-in filter or external plugin for high pass filter filtering; however, the same affect can be achieved relatively quickly with few simple manual steps. High Pass Filter Process Open the image you want to make into a tileable texture. Duplicate the base layer once by clicking Layer Duplicate Layer, select the new duplicated layer from the Layer dialog box, then click Filters Blur Gaussian Blur. Now either copy the values shown in Figure 3, or, depending upon the size of your image and the size of the highlights, modify the blur radius so that the distinct edges of highlights are smoothed out. Please note that this Layers and Layer Modes Almost all the graphics applications allow you to work on the images in multiple layers, and GIMP is no exception. A layer is like a sheet of paper in a stack. The sheets can be transparent, opaque, or even semi-transparent you can control these settings yourself. The Layer dialog box in the GIMP shows the preview of layers present in the image. A layer mode is another feature of the layers in the GIMP that allows you to change the way the current layer visually affects the layer below it. Let s say you change the layer mode of the top layer to Divide; this will instruct the GIMP to divide the color values of each pixels of the current layer from the color values of pixels of the layer beneath it. The various layer modes produce interesting results. There are about 23 different layer modes available in the GIMP. Please refer the glossary section of the GIMP documentation for more information. Figure 2: Wrapping the image reveals contrasting highlights. blurring will not result in loss of sharpness in the final image. Now invert the color of the duplicated layer. Put simply, inverting the color of the layer is like getting back the photographic negative of the image. To do that, click Layers Color Invert. As you can see (Figure 4), inverting the color also inverted the highlights in the image. This information will be used to equalize the highlights of the original image. Notice that the inverted layer still holds the color information. We do not require the color information in the layer, so we will run Desaturate. To do that, click Layers Color Desaturate. After we run Desaturate, the resulting image is in black and white shades, or it is a greyscale image (Figure 5). This color scale is sufficient to hold the brightness information that we require. The removal of color is also necessary, as it will make sure there is no unwanted color bleeding when the layer is used in the next step. Please note that the steps in this process need not be performed in sequence. The final step in the high pass filter process is to change the layer mode of the top layer to Overlay. (See the box titled Layers and Layer Modes. ) Here Figure 3: Applying the Gaussian blur filter. you might have to adjust the opacity of the overlayed layer if the resulting image is too washed out. Now we have effectively applied the high pass filter on the image. Upon comparing the filtered image (Figure 6) with the original (Figure 2), you will notice the difference that the high pass filter can make on the image highlights. The idea of using the high pass filter is to get rid of extremes in the highlight so that the texture has an even tone of highlights all over. So if you are not satisfied with the highlight difference, you can repeat the high pass filter process. But you should be aware that overdoing it will result in the image losing too much useful information. The resulting sample texture after applying the high pass filter looks a little devoid of color. This color reduction or washout effect is a side effect of the high pass filter, although in this case, the difference has resulted in very little color reduction. But this effect might be more problematic or evident in colorful images. Try out the high pass filter on any colorful image and observe the effect. Bad as it sounds, it is not difficult to get most of the color information back to a satisfactory level. Save a copy of the image in native GIMP format before proceeding. Now to restore the color, you will first need to flatten the image. Flattening refers to collapsing all the layers present in the image into a single layer. To flatten the image, click Image Flatten Image. Now duplicate the flattened layer by selecting Layer Duplicate Layer. Then click Layers Color Curve. Play with the curve levels in the pop up Color Curves dialog box (Figure 7b). Normally, three XCF: the GIMP Image Format If you want to save the layers in the image, you can do so only if you save the image in native GIMP format. The GIMP native format (with the XCF extension) also stores lots of other information like text layers, paths, layer modes, and lot more. Under GNU/ Linux, you can follow the suffix.xcf with.gz, like filename.xcf.gz. This will automatically compress the image with standard gzip compression. Similarly, you can also use the.bz2 extension. W W W. L I N U X- M A G A Z I N E. C O M ISSUE 58 SEPTEMBER 2005 45

Figure 4: The image after applying the inversion. stops in the curve will do the trick watch the image for reference. Just click once to put in a point, and drag the point to adjust the position. The GIMP tiling tool is very simple; basically, it takes the four corners (quarter sized) from the layer, duplicates them, offsets them, and finally merges them down on the original texture with some blurring and transparency. Figure 8 shows the effect of the GIMP seamless plugin on the sample image. Although the image is now tileable, the plugin has destroyed the natural tileability of the planks, and the wood looks artificial. This is not good enough for professional work. Tools of Trade Now that I have applied the high pass filter, I will show you how to create a seamless texture manually. GIMP has several tools that can assist with creating a seamless texture. The following tools are particularly important: layer offsetting (Layers Transform Offset) the clone tool the smudge tool the convolve tool After you have used the high pass filter on the image and you are satisfied about Figure 5: The image after applying desaturation. the highlight equalization of the image, you are ready to start working on the texture to make it seamless. The first step is to use GIMP s Offset tool. The Offset tool allows you to shift the layer by a specific offset distance in both in the X and/ or Y directions. The Wrap around feature allows the regions of the layer to be wrapped back inside the layer from the opposite direction if you offset the layer by more than its width or height. Before proceeding, save a copy of the file, and make sure you have flattened all the layers of the image. Now click Layer Transform Offset. In the popup Offset Layer dialog (Figure 9b), click on the button labeled Offset by X/2.Y/2 (X and Y being width and height of image). Make sure that Wrap around is selected. The Wrap around option will bring all the four edges at the center of the layer. You can then very clearly see the problems with the seam of the texture, which we need to remove in order to create a tileable image (refer to Figure 9a). The Clone Tool The next step is to try and find regions in the layer that are similar in color tone and can be used to copy and paste over the edges so as to dissolve the edges and The GIMP provides extra options with each tool available in the GIMP Toolbox. You can access the extra options from the Tool Options dialog just below the GIMP Toolbox. Check out the Tool Options dialog for special features. Figure10b shows tool options for the Clone tool. Tip seams without filling the layer with odd patches. The Clone tool allows you to clone or copy regions of image and place the cloned (or copied) regions anywhere on the image using the selected brush. The Clone tool uses the current brush shape for picking a region to clone. First you will need to select the Clone tool by clicking Tools Paint Tool Clone or by pressing [C]. This act of selecting the Clone tool will turn the cursor into a stamp icon. Now place the cursor over the region you want to clone and, keeping [Ctrl] pressed, left click once to pick the clone. Place the brush by left clicking. I have also picked and stamped a few clones (Figure 10a) using one of the GIMP-extra (See link box) brushes. I have not used the normal brushes, as they all have either sharp or blurred edges, and they might not be of the right shape and size. For this texture, we need more natural grunge brushes. There are many brushes available for the GIMP; if you are interested in exploring brush options, you can do a Google search to look for brushes. This clone stamping has to be repeated with varied brushes, shapes, and sizes, and clones have to be picked from various regions of the layer so that the texture does not lose its complexity. Figure 6: a) The texture after a high pass filter. b) The Layers dialog box. Figure 7: a) Texture after color enhancement. b) The Color Curves dialog. 46 ISSUE 58 SEPTEMBER 2005 W W W. L I N U X- M A G A Z I N E. C O M

Advertisment Figure 8: After applying the GIMP s seamless plugin. Make sure you don t use clones of contrasting brightness, or they will attract the eye during tiling. The Smudge Tool The layer is now starting to look good for a tilable texture, but some smaller artifacts remain. We can notice them better if we zoom into the image. In Figure 11a, I zoomed up to 550 and chose a region where we can clearly see a distorted seam where the two wooden planks are close. The image has horizontal texture variations, so we will remove the seam using the Smudge tool in the horizontal direction. The Smudge tool is used as a brush modifier. It acts by moving or stretching the pixels currently under the brush towards the direction of the stroke. It behaves much the way an artist mixes the colors on the canvas, by stroking the color pigments with the brush. I choose the Circle (03) brush for this purpose. Select the Smudge tool through the menu Tools Paint tools Smudge. Now place the brush before the artifact on the black part and drag it horizontally so that the black line looks continuous. Press [Ctrl+Z] to undo if necessary. Here I also repeated Smudge over the brown part of the artifact to get some- Figure 9: a) Seams of the edges are distinct. b) The Offset Layer dialog. Figure 10: a) The image you are using as a texture after a few steps. b) Clone tool options.

Figure 11: a) The part that will be modified. b) After a few Smudge strokes. Figure 12: a) The blurred part of the image. b) Convolve tool extra options. thing like the image in the Figure 11b. Repeat smudging wherever you deem it necessary to remove artifacts from the image. The Convolve Tool Looking at Figure12a, you will notice that the Smudge tool has made the part inside the white box a bit blurry. We can correct such mistakes in the layer by a tool in the GIMP called the Convolve tool (Figure 12b). The Convolve tool provides the blur/ sharpen capability to the selected brush. You are allowed to use either blur or sharpen at one time on the image. To use this tool, select Convolve tool from Tools Paint Tools Convolve or press [V]. Now look at the Tool Options dialog, select the convolve type as sharpen (Figure 12b), and leave the other settings at the defaults. Now, if you move the brush over the part of the image, the GIMP will sharpen the path where the brush moves. This way, you can clean up small blurriness areas to cover up occasional blurs caused by the Smudge tool itself. You can hold down [Ctrl] to toggle between blur and sharpen. The Convolve blur is different from the Smudge equivalent, as the Convolve option just applies blurring to the part under the Figure 13: The final, completed texture. brush without moving the pixels along with the stroke. Tips and Tricks Work with the Clone tool, the Smudge tool, and the Convolve tool as long as necessary to remove the seams and edges. This process will give you a seamless, tileable texture. Now that you are acquainted with the steps, below are a few tips that will allow you to have better control over the tiling process. Don t over brush a single clone. Pick multiple clones from different brushes and from different regions of the image, but make sure the cloned region s color tone matches the place where you want to stamp the clone. The brush should be chosen carefully, as some brushes are slightly blurred and the clone they will pick up will also become blurred when you use the brush. So in cases where you have a texture with smaller details like the sample image pick the brush with sharper edges. Using the Smudge tool can be tricky at first, so apply brush strokes of smaller length and also use smaller brushes. Always maintain the flow of patterns Seamless Plugin One must remember that the GIMP also has a built-in tiling tool. It can be accessed from Filters Map Make seamless. A word of caution: although the GIMP tool can make an image or layer tileable, it is far from usable for serious tiling. The GIMP tool can destroy the natural texture of the image and, therefore, this tool is not very effective. However, it can work well for a simple texture with moderate variations. As one might expect, it performs better on images with highlights equalized. while using the Smudge tool. In our example, you can make horizontal brush strokes, following the patterns of wood. You can also use the Smudge tool to cover up smaller contrasting patches by gradually stroking brush from both dark and light areas of the patch. Sometimes you cannot cover up all the blurring caused by the Convolvesharpen tool, so you might want to increase the rate of sharpness from the Tool Options dialog. Finishing Touches After you have removed the edges from the image, again offset it by -X/ 2 and -Y/ 2 to get the original position of the image back. Now click Filters Map Tile, double the width value, and press the OK button. This will create a new image window where you can see the image tiled twice in both directions. Tiling this way will allow you to see how the texture looks when tiled. If you feel that the texture is not finished, you can play with the tools and image to get the desired texture. Finally, you might need to increase the sharpness of the texture. To increase the texture's sharpness, click Filter Enhance Sharpen. Don t choose the maximum setting to sharpen the image; instead, choose a smaller value for the sharpness and repeat it a few times until you are satisfied. INFO [1] The GIMP: http:// www. gimp. org/ [2] Plug-ins and scripts: http:// www. registry. gimp. org [3] GIMP Manual: http:// docs. gimp. org [4] Textures: http:// www. mayang. com 48 ISSUE 58 SEPTEMBER 2005 W W W. L I N U X- M A G A Z I N E. C O M