Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I create a grid in Gimp (a 32x32px grid with 0x0px offset), the distance between the top edge of the image, and the first grid line, is 31 pixels, almost like the grid starts one pixel above the canvas. The same goes for the left edge.

However, after enabling Snap to Grid, pasted images (with sizes that are multiples of 32x32px) snap to the "correct" grid positions, as if the grid started at the first pixel of the canvas. The drawn grid and the snapping grid do not align. Also, the snapping is dependent on the zoom factor (and maybe on the size of the image being snapped, I'm not sure).

Is this correct behavior? Is this changeable?

I'm using Gimp 2.6.11 on Windows (both 7 and XP).

Image how it looks:

share|improve this question
I can reproduce this in GIMP 2.6.8 on Ubuntu Linux. Also, it seems that the snapping fluctuates as I drag the selection around -- sometimes it snaps to the actual grid lines, but usually one pixel down and right of them. Seems like a bug to me. You might want to report it. – Ilmari Karonen Mar 14 '12 at 18:35
Obligatory... – Mateen Ulhaq Apr 15 '12 at 1:33

Gimp starts to count the pixel from 0, not 1, so 32px are from 0 to 31, 32 to 63, etc...Coordinate Example

About the grid snap, it works well for me so i'm not able to reproduce it, I have the same version on Windows 7 x64.

share|improve this answer

I had this issue. Removing/renaming the .gimp-2.8 folder in my home directory fixed it.

share|improve this answer

I'm pretty sure this was the following bug:

Fixed recently - to be precise, Wed May 21 20:43:05 2014 +0200. The fix is available in releases 2.8.12 and newer.

share|improve this answer

This bug appears to be active in 2.8.10.

The problem seems to be an off-by-one error in the first row, and column of each grid.

The solution seems to be to offset your grid by a negative amount one less than your grid-size. So, for a grid of 32x32, offset by -31x and -31y. This pushes the broken row and column out of your workspace.

share|improve this answer

Your Answer


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.