After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783701 - Magnetic middle points when using guide lines at canvas margin
Magnetic middle points when using guide lines at canvas margin
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Tools
2.8.22
Other All
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2017-06-12 15:57 UTC by Jo
Modified: 2018-05-24 17:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jo 2017-06-12 15:57:46 UTC
very often I have to deal with guide lines. Its a pain to put them exactly in the middle of the canvas (be it vertically/horizontally), so I need to use scripts.

Would be a time saver if we could position guide lines with some concept, not only freehand.

example.
if I drag a vertical/horizontal line to the middle of the canvas, the guide line should snap in there, like a magnet. 
now, if I drag another guide line (be it vertically or horizontally), a new middle line would snap in at 1/4, no more at 1/2 and so forth.
Comment 1 SenlinOS 2017-06-12 17:29:18 UTC
Image > Guides > New Guide (by Percent)
Direction: Horizontal
Position (in%): 50

Direction: Vertical
Position (in%): 50

View > Snap to Guides
------------------------
Good~
Comment 2 Jo 2017-06-12 18:10:03 UTC
(In reply to SenlinOS from comment #1)
> Image > Guides > New Guide (by Percent)
> Direction: Horizontal
> Position (in%): 50
> 
> Direction: Vertical
> Position (in%): 50
> 
> View > Snap to Guides
> ------------------------
> Good~

Thanks, I use this script all times.
Its an old-bake way - moving guides on-canvas is much faster and natural, if we get support of magnetic mid-points along between guides along the canvas margin.
Comment 3 Michael Schumacher 2017-06-13 11:02:31 UTC
I'm tempted to resolve this as a duplicate of bug 775068.
Comment 4 Jo 2017-06-13 12:01:06 UTC
(In reply to Michael Schumacher from comment #3)
> I'm tempted to resolve this as a duplicate of bug 775068.

…but it isn't the same. I want to place my guides precisely but on 1/2, then 1/4 then 1/8 and so forth. Gimp helps me to divide the canvas logically in always smaller halves, because there isn't anything like like a grid who subdivides in percent.

its not about placing guides precisely following the ruler marking - where is the middle? is my question. Simple subdivision is made by half, half of half and so forth.
Comment 5 Jo 2017-06-13 12:14:10 UTC
example.

1-no guide lines on canvas
2-i drag a guide from the ruler (whatever, if vertical or horizontal, doesn't matter)
3-i try to place my guide in the middle of the canvas and gimp helps me to find this middle point, the guide line snaps in, at 1/2
4-now I want to subdivide the space between the canvas margin and the guide line placed in point 3 and get a subdivision of 1/4. 
5-again, if I want another subdivision of 1/8, I drag a guide to the middle of the space between the guide created in point 4 and the canvas margin.
 
the measurement of the magnetic middle point is calculated dynamically and happens between guides of the same direction (vertical spaces respect vertical spaces, ect.) and between guides and canvas margins.
Comment 6 Michael Schumacher 2017-06-13 12:49:15 UTC
Have a look at the See also bugs, too. We need all of this for your wish to come true, anyway:

Being able to set the rulers to a percentage will make sure that we know where the middle - i.e. 50% - is. 

Being able to have guides at arbitrary sub-pixel positions is necessary to set a guide at precisely 50%, and not just 50% +/- 1 pixel. 

And snapping to ruler marks will achieve being able to snap to 50%, 40%, 25%, ...
Comment 7 Michael Schumacher 2017-06-13 12:50:41 UTC
From there, the scheme can be extended to allow for subdivisions of ruler divisions - but still ,we need all those preconditions in place.
Comment 8 Jo 2017-06-13 14:33:46 UTC
(In reply to Michael Schumacher from comment #7)
> From there, the scheme can be extended to allow for subdivisions of ruler
> divisions - but still ,we need all those preconditions in place.

to know the middle, we have to consider
- the space between guides (vertical to vertical, horizontal to horizontal) 
- the space between the canvas border and the nearest guide

In this way we can draw quickly a lot of guides without even to bother with the ruler -if- the space is always divided by half, -after we placed a new guide.
Comment 9 GNOME Infrastructure Team 2018-05-24 17:55:39 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/1114.