Advanced ways to create guides in GIMP

Advanced ways to create guides in GIMP

Few days ago a user asked in a GIMP forum how to create a set of guides with an equal distance between the guides. Hence the new GIMP tutorial.

Guides are a great way to keep items aligned in your design without having to use the Align/Distribute tool all the time. You just drag an object (selection, layer or path), and it snaps to a guide line.

An example of using guides for alignment

Indeed, by default GIMP is shipped with fairly simplistic scripts to deal with guides. But there is some interest in more sophisticated tools, and that request is met but some 3rd party extensions. Let's review them.

A minor note before we go: for reference on installation of .scm and .py files please read this add-ons management guide.

Location of most scripts and plug-ins for handling guides

All scripts listed below with two exceptions will show up in Image → Guides submenu (see above).

Adding equally spaced guides

This is probably the most common scenario. There are several scripts or, rather, sets of scripts to do just that. The first script is called New Guides Every X Pixels.

New Guides Every X Pixel dialog

Pick direction, set spacing in pixels between guide lines, and it will create equally spaced guides starting at 0 of an axis.

New Guides Every X Pixel output

The second candidate here is either of Spaced H-Guides and Spaced V-Guides scripts.

Spaced V-Guides dialog

The principle of both is that it creates new guides at an equal offset starting at a user-defined point: the left side of an image, the right side of an image or the center of an image. H and V in the names refers to horizontal and vertical.

Spaced V-Guides output

Each of them will keep creating new guides until it reaches border(s) of an image.

Finally, Grid (of Guides) is rather self-explanatory: it creates a grid of guides with user-defined amount of cells in both dimensions.

Grid of Guides dialog

The predictable output is:

Grid of Guides output

Adding guides in arbitrary positions

There are three options here. The first one are the two scripts shipped with GIMP by default, New Guide and New Guide (by Percent), if you can stand the excitement of repetitive calling the dialog to define a new value when you need multiple guides. The first one asks for a coordinate in pixel for a chosen dimension, the other one uses relative value, in percents from dimension's length.

A much better option is the Multiple Guides plug-in from the GAT tools set (this one is in Tools → Gimp-Atelier submenu):

Multiple Guides dialog

The dialog is pretty much self-explanatory. Here is the output:

Multiple Guides output

The other option is the Add Multiple Guides plug-in. For some reason the developer chose to stick to his native language which is German, so that the plug-in shows up in menu as Mehrere Hilfslinien setzen, but the UI is simple enough to understand:

Add Multiple Guides dialog

The "prozentual?" checkbox to the left toggles percentage mode, "Hilfslinie" means "a guide line", the entry box is the entry box by any other name, and "horizontal/vertikal" combo box is hopefully self-explanatory too.

You can click Add button to remove a new guide to the stack, and Remove button deletes the last guide in the stack. The output from the example above is:

Add Multiple Guides output

So the advance over the plug-in from GAT tools is that you can mix relative (percents) and absolute (pixels) units.

Common presets

Of course, where would we be without common presets?

Border Guides script renders guides around border, but allows you to define an offset on both X and Y axis. A positive value (e.g. 5px) for both will render guides inside the page:

Center Guides script will do exactly what it says:

Center guides

The output from the Add Rule Of Thirds guides plug-in is pretty much predictable as well:

Rule Of thirds guides

The 10% Grid Guides script, accessible from the bottom of the View menu will render a 10×10 grid inside your image, also rendering guides around the page:

10% Grid Guides

Finally, GAT tools come with a Guide Sets plug-in to render guides from a variety of presets: Center Cross, Rule of Thirds, Golden Ratio, Fields 3×4 and so on:

Guide Sets dialog

The output is:

Golden ratio guides

You can also use Free Fields options and set amount of grid cells in both directions, up to 50 for both X and Y.

Summary

Thanks to various 3rd party scripts you can simplify creating new sets of guides. However these scripts and plug-ins are redundant to some extent.

I can see two possible solutions:

  1. Merge the existing scripts to match common use scenarios and ship them with GIMP.
  2. Create a native Scribus-like dialog to manage guides.

This could be a fancy little GSoC project, especially if angled guides were implemented as well (ask Joao S. O. Bueno for details).

Was it useful? There's more:

12 Responses. Comments closed for this entry.

  1. That’s what I search for a long time.

  2. Alexandre Prokoudine 31 October 2011 at 11:12 pm

    That’s what I search for a long time.

    Let me know if there are more things like that you searched for :)

  3. I see that there are three important GIMP forums:
    Gimptalk
    Gimpusers
    Gimpforums

    Which one would you recommend to me? Are any of them the official GIMP forum?  I prefer one where I can report bugs, make wishes, and so on.
    Thank you.

  4. @YAFU

    Gimpchat seems to be more or less high-traffic too.

    There are no official GIMP forums. However, gimpusers.com seems to run a bridge to a GIMP users mailing list that is the official support channel.

    Personally I barely participate at any of the ones you listed (mostly due to lack of time), hence I don’t feel justified to recommend one over the other.

  5. Thanks. Gimptalk seems to be better as a forum, but I registered to Gimpusers case I need to talk about problems in the development version. Here my first question:
    http://www.gimpusers.com/forums/gimp-user/13775-best-way-to-draw-colored-ribbons-gimp-2-7

    :-)

  6. @YAFU

    Hey Yafu, I’m a member of most of the forums in the area, and I personally like Gimpchat the best.  As a community, they seem to be by far the most friendly, and to me it seems like it’s the most active forum of the bunch.

  7. @Alex
    Ok, I will register to Gimpchat.
    Thanks.

  8. Hi Alex,
    This is what i call an article not “a tip” :P
    In fact, it is very complete. I agree with your idea of “one in all” wich is the most useful for users. Could we gather all the people that made these scripts and make a “superscript” ?  who knows.
    again, good content and well explained.

  9. Alexandre Prokoudine 11 November 2011 at 4:39 pm

    Could we gather all the people that made these scripts and make a “superscript”?

    I think it could be worth a try.

  10. Show the grids some love! :D

  11. Would like to invite you all to the Open Source Photography community on Google+

    https://plus.google.com/u/1/communities/110647644928874455108

  12. I have spent an absolute fortune on licensed software. I can’t believe how good the free stuff is. Thanks for this I need to look more into some of the other free software out there too.