Posts: 2
Threads: 1
Joined: Dec 2022
Reputation:
0
Operating system(s):
Gimp version: 2.10
Hi,
Starting with an image on an oversized canvas (ie. with space all around the image), I was wondering if there's to select a point on the image with the mouse and then snap this point to the centre of the canvas?
Hope this makes sense. I frequently have to centre scanned maps in this way and would like to find a way to do it quickly and precisely.
Thanks
Posts: 6,361
Threads: 275
Joined: Oct 2016
Reputation:
565
Operating system(s):
Gimp version: 2.10
With current 2.10 Crop tool (that doesn't delete anything, and will even "grow" the image), just use the crop tool with Expand from center and Allow growing options, and start on the point you want to be the center?
Otherwise, not hard to write a script given a proper definition of "centering image" (what happens at the borders?), but a script cannot read the point where you click, so you have to designate the point by other means (intersection of guides, for instance) that aren't so practical
Posts: 1,148
Threads: 178
Joined: Sep 2018
Reputation:
114
Operating system(s):
- Windows (Vista and later)
Gimp version: 2.10
What I did to solve this : set guides to the center of the canvas (Image / Guides / Presets / On Image / Centered). I think this is a plugin from Ofnuts. Set the layer with the image to move active. With the 'Fuzzy Select Tool' select the whole image you want to move on this layer. Click on the point in the image you want as reference point and drag it to the center of the big canvas (the point where the guides intersect). Done.
Posts: 2
Threads: 1
Joined: Dec 2022
Reputation:
0
Operating system(s):
Gimp version: 2.10
Thanks for your help everyone