Mobile app version of vmapp.org
Login or Join
Chiappetta793

: GIMP: How to center a layer between two others I want to center some text between two images. The way I've been doing it is: Take the left edge location of the right image. Subtract the

@Chiappetta793

Posted in: #Alignment #Gimp #HowTo

I want to center some text between two images.

The way I've been doing it is:


Take the left edge location of the right image.
Subtract the Right edge location of the left image.
Subtract half the length of the text. (Or any layer you wanted to center. You can find the size with the scale tool).
Left-Distribute the text with the Align tool and the number of pixels you calculated.


It seems like I should be able to do this much easier with the Distribute/Align tool, without needing a pencil and paper and basic math.

One of the related questions: "GIMP: find midpoint / arbitrary division between two points" seems to say this is the only solution.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Chiappetta793

2 Comments

Sorted by latest first Latest Oldest Best

 

@Courtney577

I’ve used the following method to center one or more layers between any two points:


Create your new text (or whatever) layer(s) between the two points (put it off-center a little so that you will see it move when you finally center it).
Add a new transparent layer over your entire graphic (and make sure it is the active layer). Call it guide layer or something like that.
Using the pencil tool, draw a perfectly horizontal line between the two points (click starting point, hold down Shift and Ctrl, scroll right, click end point, release mouse, release keys). Make the line somewhat thick so you can work with it.
Use Autocrop Layer to “shrink” the new layer down to the line only. Use the Move tool to adjust the position of the line if you need to.
Select the Alignment tool, then select the line created in step 3 and every other layer that you want to center to it. The guide layer should still be the active layer.
Display the Tools Options dialog (if not already displayed) and select Relative to: Active layer, then click Align center of target.


Now all of your layers are centered to the guide line and you can delete the guide layer.

10% popularity Vote Up Vote Down


 

@Pierce403

My approach would be as follows:

Assuming that your two images are layers, and that the text layer does exist already:


create a selection that spans the area between the two layers' right and left edges
use the Align tool on the text layer, choose "Selection" in the "Relative to" dropdown in its tool options
Align as desired with the buttons in the Align tool options


If this does not solve your task, then you should add an image to your question and point out where it differs from your intended result.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme