Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

I'm a beginner to GIMP, and I'd like to create a grid.

I searched Google and all it gave me was to use the Filter > Render > Grid plugin, but for my job all I want to do is something like this:

Let's say I have a square image that's 1530 x 1530, and I want the grid to be an 8 x 8 matrix with grid lines that are 1px wide. I don't want to calculate the right spacing on each grid cell as the grid filter gives me; I just want GIMP to calculate the right spacing and grid line width for this image.

Is there a way to do it right?

share|improve this question

1 Answer 1

Here is an example of how the grid plug-in works:
Gimp Grid Filter Screenshot
This screenshot depicts a four-square grid where each line has a width of 1 pixel. There is no offset around the border. The intersections are 0 so that lines smoothly intersect each other.

The spacing is the part that you seem to be having trouble with. First, you should set it in percent by clicking the drop-down menu next to it and selecting the percent symbol. This allows you to give each line a proportionate spacing that you don't have to calculate. When regarding percentage, Percent example
this is considered to be 100% horizontal, 100% vertical. This means that there will be a gap between each line equal to 100% of the image's width and height. If you take 100 here and divide it by 8 (as in your case), then you will get the number of lines you wish to have expressed as a percentage (in this case, 12.5%). If you insert 12.5, 12.5 then each line will have a width and height of 12.5% of the total image, so that you end up with an 8x8 grid. This method works for other grid sizes. You can click the chain icon below the spacing category (as seen in the first screenshot) to set the widths and heights between each line independently.

For example, if you wanted a 5x3 grid, you would use: 100 / 5 = 20 for horizontal lines, and 100 / 3 = 33.33 for vertical lines. The screenshot below illustrates this. 5x3 grid

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.