Making fill patterns in Gimp

I find myself making fill patterns in Gimp every so often and always having to look up the trick.

Here’s how to use Gimp to make tileable fill patterns, which you can either use inside Gimp, inside other programs, or as web backgrounds.

First, to make an image that will tile smoothly when repeated, start with a source image. This can be a drawing or a photograph.

Be careful about copyrights. If you drew or photographed the image yourself, you’re fine. Or if the image is from 1924 or earlier, you’re fine. If the person who created the image puts it in the public domain, licenses it under terms that permit distribution and modification, or otherwise gives you permission, you’re fine. Under any other circumstances, you may not be so fine. For personal use, nobody’s going to beat down your door, but putting the image on the ‘Net doesn’t exactly constitute personal use, if you know what I mean.

Got that? Got a picture? Good. Open it in Gimp. Actually you’ll probably want to open it twice. You’ll see why shortly.

Crop one of the copies of the image down into something that resembles the pattern you want to make. A lot of patterns aren’t much more than 256×256 pixels and you may be able to accomplish what you want in less than that. If it’s photorealism you seek, you may need to go a bit larger.

If the image isn’t straight or square, crop it slightly oversize (select the region with the mouse, then go to Image, Crop image) then use the perspective tool (Tools, Transform Tools, Perspective; or hit shift-p) and/or the rotate tool (Tools, Transform Tools, Rotate; or hit shift-r) to get the image straight and square. Then crop it.

Now, the magic. To make the image tile smoothly, use the offset command and smooth it out. Go to Layer, Transform, Offset (or hit shift-ctrl-o). Punch the button that says x/2 y/2 and hit OK. Your image will now be a tangled mess, in all likelihood. Smooth in the gaps. If you’re tiling bricks or something similar, you may want to go back to the original, uncropped image and copy and paste bits and pieces from it back into the image to cover up the gaps.

Keep in mind that when you cut/copy and paste, you can also select a region and use the paste into command, also from the edit menu.

You may also find it helpful to blur some gaps. Select the region you want to blur, then go to Filters, Blur. You might also find the Tileable Blur under the same menu helpful. Sometimes I’ve gotten good effects by repeatedly sharpening and blurring a region. It introduces just enough noise to bring it close enough that I can finish retouching by hand. You’ll find sharpen under the Filters, Enhance menu.

Once the image looks smooth, hit shift-ctrl-o to offset it again. You may find you’ve introduced new problems. Fix those, and offset again. Repeat the process until the problems disappear.

I find myself zooming way in and out a lot during this process. It’s often easier to select a precise spot you want to fix when you’re zoomed in.

And that’s the secret to making fill patterns in Gimp. Armed with an image, a copy of Gimp, this knowledge, and some determination and patience, you now have everything you need to make spectacular tileable patterns.

Paint.NET is fine for what it\’s intended but no Gimp killer

Paint.NET got Slashdotted today (here’s a list of mirrors ) and instantly it was hailed as the killer of Gimp, Photoshop, Paint Shop Pro, and probably every other graphics program ever made.

Of course I had to try it out immediately.What I quickly found was a very capable replacement for the venerable, miserable Paint that comes with Windows (which isn’t even as good as some of the type-in paint programs for the C-64 from the late 1980s) with a handful of high-end features bolted on and a user interface that makes most things reasonably easy to find.

Its lasso tool is extremely intuitive and it, as well as the other selection tools, highlight what you’re selecting as you’re doing the selection. That’s a huge plus. It has some nice filters built in too. For what I do, I can think of practical uses for the included “Frosted Glass” filter. Others will enjoy the oil paint filter. Most people will find both of them to be fun.

It lets you zoom way in on your work, which at times is exceptionally helpful.

Some people will find the layers tool very useful and it makes them pretty easy.

But Gimp killer? No. Paint Shop Pro killer? Maybe for some people.

For people who want to do something other than crop a digital picture, sharpen it a little and maybe add an effect and some text, it still has some serious limitations.

For one, you can’t make custom patterns. For me, that’s a showstopper. The included patterns are nice but sometimes I need to make a pattern out of a photograph so I can make something photorealistic. Gimp lets me do that. Paint.NET does not.

If you can make the paint bucket fill an area with a pattern, I couldn’t figure out how to do it. Either this feature–which I use constantly in Gimp–is missing or it’s buried somewhere that this dumb journalist can’t find it.

Don’t get me wrong. As a replacement for Paint to do simple tasks, it succeeds. But don’t call it a Photoshop killer, a Gimp killer, or a Paint Shop Pro killer. It’s all the paint program some people need.

But it’s better than those other programs in the same way Notepad is a better word processor than Word or WordPerfect. Sure, you can’t get any easier to use than Notepad. But did you need fonts? Spell check? Margins?

I recommend downloading and installing Paint.NET, as it’s not terribly large and, even if you don’t use it as your only paint program, you may find yourself loading an image into it to use a couple of its tools that you like before taking the image back into a more powerful editor. Just don’t call it something that it’s not.

How to use Knoppix to replace at least $100 worth of must-have utilities

Even if you aren’t really a Linux person, the live CD Linux distribution Knoppix is incredibly useful. If nothing else, you can use it to replace Ghost, Partition Magic, and Nero or EZ CD Creator. That’s $100 worth of utilities for the cost of a download, or, if you don’t have broadband, for $5-$10 from a Linux distributor.If you’re not a Linux person, here’s how to boot and fire up the utilities you need. Once they’re up and running, they’re very intuitive; it’s just finding them that can be difficult.

PartitionMagic:
Boot Knoppix.
Click the shell icon in the toolbar at the bottom.
Type ‘su’ (no quotes) and hit enter to become a privileged user.
Type ‘qtparted’ (no quotes) and hit enter to bring up a free Partition Magic clone.

Ghost/DriveImage:
Boot Knoppix.
Click the shell icon in the toolbar at the bottom.
Type ‘su’ (no quotes) and hit enter to become a privileged user.
Type ‘mkdir /smb’ (no quotes) and hit enter to make a point to mount a network share.
Type ‘smbmount //server/share /smb -o username=myusername’ (no quotes) and hit enter to mount the network share. Enter your NT password when indicated.
Type ‘partimage’ (no quotes) and hit enter to launch Partimage, the closest thing there is to a free/open source Ghost. Save your image to /smb and you’ve got it made. No more paying for Ghost licenses, no more dinking around with boot floppies to try to find the right driver for your NIC and trying to find enough room to cram the ever-more-bloated Ghost…

Nero/EZ CD Creator:
Boot Knoppix.
Click the shell icon in the toolbar at the bottom.
Type ‘k3b’ (no quotes) and hit enter to launch a CD burning application.

Drive wiping utilities:
This assumes the drive you want to wipe is the primary master on your first IDE channel. Unless you really know what you’re doing, disconnect all other hard drives!
Boot Knoppix.
Click the shell icon in the toolbar at the bottom.
Type ‘su’ (no quotes) and hit enter to become a privileged user.
Type ‘dd if=/dev/random of=/dev/hda bs=512’ and hit enter.
For something approaching military-grade security, you need to overwrite seven times. Here’s one line to do that. This will take a good, long while.
Type ‘dd if=/dev/zero of=/dev/hda bs=512 ; dd if=/dev/random of=/dev/hda bs=512 ; dd if=/dev/zero of=/dev/hda bs=512 ; dd if=/dev/random of=/dev/hda bs=512 ; dd if=/dev/zero of=/dev/hda bs=512 ; dd if=/dev/random of=/dev/hda bs=512 ; dd if=/dev/zero of=/dev/hda bs=512’ and hit enter.
To securely wipe floppies, substitute the string “fd0” for “hda0”.

Disk defragmentation in Windows 2000, XP, and, uh, NT4

The disk defragmenter that Microsoft includes with Windows 2000 and XP really stinks up the place.

I’ve been playing with an alternative.It’s free. It’s called DIRMS, an acronym for Do It Right Microsoft.

It’s text mode. That means XP and NT owners can schedule defragments without paying for Diskeeper, which is good, because Diskeeper is barely better than MS’s defrag because they were written by the same company.

DIRMS uses the same built-in API so it ought to be safe but it uses a different algorithm. Whereas Executive’s programs won’t even try to defrag a file if it can’t do it completely, DIRMS just does the best it can. And unlike Diskeeper/Defrag, it moves files to the front of the disk, just like Win98’s Defrag, which increases performance further.

I’m not ready to put it on any system I care about yet, but I think it has a lot of potential. Rather than running Defrag four times to clean up a disk, I can run DIRMS followed by Defrag to mop up the operation and get a disk that’s almost 100% defragmented.

In fact the two programs seem to do better in tandem than either could ever do on their own. At any rate, it’s free, and worth checking out.

Graphics software for Windows revisited

My girlfriend was asking me about graphics software today. She’d been trying to use Paint Shop Pro as an inexpensive alternative to Adobe Illustrator and, predictably, was disappointed.

The GPL alternatives to Illustrator still lack at least one crucial feature (bitmap pattern fills) but I remembered reading about Serif DrawPlus.Serif is a manufacturer of cheap desktop publishing/graphics software. By cheap, I mean they aim for the $99 price point for their flagship product, then they give away older versions, and, at least sometimes, when you download the older version they offer you a somewhat less-old version for $10 or $20.

So I downloaded DrawPlus 5 and played around with it. It’s a bit basic, but it has all of the fundamentals. After about five minutes of playing around I was able to do some nice effects with text–for example, I was able to add a border to the edge of the letters, add fills, and even add a transparency effect. Cool.

Standard polygon and circle tools are there too, and you can combine multiple shapes into more complex shapes. If you can picture something as boxes and other simple shapes, you can draw a scaleable image of it with this program.

Why yes, I do think I’ll be using this to draw buildings and such for my Lionel layout. How’d you ever guess?

It’s not as powerful as Illustrator, but for a lot of people it’ll do what they need. Someone unfamiliar with vector graphics might be more comfortable with a simpler program like this, then switching to the higher-end software after running up against the simpler program’s limitations. (For years journalism schools taught desktop publishing by teaching students Pagemaker first, then QuarkXPress, since the latter is much less intimidating once one is familiar with the basic concepts.)

Check it out at freeserifsoftware.com. Serif also offers a raster image editor (a la Photoshop) and a desktop publisher under the same plan.

I like Firefox 1.0

Big surprise, huh? Seeing as I’ve been running it since the very first version, back when it was called Firebird, and the version number was probably 0.1.

And I really liked 1.0PR, so it was a given that I’d like 1.0. So there’s no big difference, right?

I’m not so sure about that.Maybe it’s just me, but I think 1.0 renders pages faster. Quite a bit faster. And there are some bug fixes, some minor and some less minor, but nothing we haven’t gotten used to from living with IE for all these years. If you were using 1.0PR, there’s no reason not to upgrade to the gold release code.

I see from my logs that 25% of my site’s visitors use some flavor of Mozilla. That’s good. If you’re not in that group, you owe it to yourself to try it.

Believe it or not, you can get excited about a web browser again.

Firefox 1.0 is out, and mozilla.org is down

So I wait. Now I know what it was like to stand in line waiting to buy Windows 95.

Wait. No I don’t. I’m actually standing in line waiting to get something good.

Cheap hardware won’t stop software piracy

Who’s to blame for rampant software piracy? According to Steve Ballmer, AMD and Intel. Oh, and Dell. Charge less for the computer, and there’ll be more money to pay for Windows and Office.

Steve Ballmer doesn’t know his history.

Read more

The almost-was Bill Gates

The almost-was Bill Gates

Finally, a little bit more detail on the haziest (to me) story in my controversial Why I Dislike Microsoft has appeared: Gary Kildall’s side of the CP/M-QDOS-PC DOS 1.0 story.

The story corroborates what I said, but I wish the story answered more questions.

Read more

What pop singer is your OS?

Using Unix is the computing equivalent of listening only to music by David Cassidy.
–Unix pioneer (and Plan 9 co-creator) Rob Pike on Slashdot

Ah, the questions that inspires…If Unix is David Cassidy, then what’s Windows?

I nominate Britney Spears. She and her management can’t decide what her name is, she’s tempermental, unstable, lacks talent… You can have a heyday with that analogy.

Is Mac OS the Grateful Dead? Hmm…. There’s not only that “Flower Power” Imac, there’s also that cult following…

Amiga OS must be the Velvet Underground. Ahead of its time, obscure but not so obscure that nobody has heard of it, influenced virtually everything that came after it, and 20 years later, lots of things still haven’t completely caught up…

SCO obviously wants us to think Linux is Milli Vanilli.

So which OS has to be New Kids on the Block? Vanilla Ice? MC Hammer? David Hasselhof?