It is currently Mon Sep 21, 2026 10:48 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: why are not imported layers aligned to center?
PostPosted: Fri Nov 04, 2016 5:13 pm  (#1) 
Offline
GimpChat Member

Joined: Nov 04, 2016
Posts: 11
GIMP Version: 2.8.14
Operating System: Windows
OS Version: 10
GIMP Experience: New User



When you import a series of layers from another xcf file to the one you are working in, how are those imported layers aligned?
Should not they come aligned as center of layer on center of canvas?

I am importing a series of layers of exactly 1800x1200 to a new file that is exactly 1800x1200.
See in the capture below how the new layers (blue) are not aligned to the background (black)

Why is that?

I know I can easily fix it by re-aligning the imported layer..... but when you have to re-align 400 layers, that is a different story...
Can anyone please help or at least hint ?


Attachments:
gimp_alignment_of_importe_layers.png
gimp_alignment_of_importe_layers.png [ 74.78 KiB | Viewed 5117 times ]
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: why are not imported layers aligned to center?
PostPosted: Fri Nov 04, 2016 5:41 pm  (#2) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4554
Location: Canada
Select your background and use Edit->Paste Into instead of Edit->Paste as New Layer, then right click the floating selection that was pasted in there and select "To New Layer"

Or if your source is saved as an image. When you File->Open as layers, it should automatically put it in center for you, it does for me.

or if it's not center, select the Alignment tool, right next to the Move tool,and in tool options click Relative to: Image.
then click the double arrows pointing at each other to center layer horizontally and vertically, you're like 3 or 4 clicks away.

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: why are not imported layers aligned to center?
PostPosted: Fri Nov 04, 2016 5:59 pm  (#3) 
Offline
GimpChat Member

Joined: Nov 04, 2016
Posts: 11
trandoductin wrote:
Select your background and use Edit->Paste Into instead of Edit->Paste as New Layer, then right click the floating selection that was pasted in there and select "To New Layer"

Or if your source is saved as an image. When you File->Open as layers, it should automatically put it in center for you, it does for me.

or if it's not center, select the Alignment tool, right next to the Move tool,and in tool options click Relative to: Image.
then click the double arrows pointing at each other to center layer horizontally and vertically, you're like 3 or 4 clicks away.


Thank you. As I said, I am importing like 400 layers, which might hint that I am importing from another xcf file........ not copy-paste, but import as layers.....


Top
 Post subject: Re: why are not imported layers aligned to center?
PostPosted: Fri Nov 04, 2016 6:01 pm  (#4) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4554
Location: Canada
I use 2.8.16
I don't have "import as layers" only "open as layers". And that for me is automatically centered.

EDIT: I tried "open as layers" and selected an .xcf and it opened all layers in the .xcf as layers on my image all centered.

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: why are not imported layers aligned to center?
PostPosted: Fri Nov 04, 2016 6:43 pm  (#5) 
Offline
GimpChat Member

Joined: Nov 04, 2016
Posts: 11
trandoductin wrote:
I use 2.8.16
I don't have "import as layers" only "open as layers". And that for me is automatically centered.

EDIT: I tried "open as layers" and selected an .xcf and it opened all layers in the .xcf as layers on my image all centered.


yes, that is the expected default behavior...... but in my case for some reason, this is not happening and I'd appreciate some help.


Top
 Post subject: Re: why are not imported layers aligned to center?
PostPosted: Fri Nov 04, 2016 7:25 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
The behavior I see is that:

1) layers are imported with their individual offsets in the original image (ie, they will stack exactly the same way)
2) the bounding box of all these layers is centered in the image

So if your imported image has layer which is wildly off-center, this pushes all other layers in the opposite direction when imported.

_________________
Image


Top
 Post subject: Re: why are not imported layers aligned to center?
PostPosted: Fri Nov 04, 2016 7:57 pm  (#7) 
Offline
GimpChat Member

Joined: Nov 04, 2016
Posts: 11
ofnuts wrote:
The behavior I see is that:

1) layers are imported with their individual offsets in the original image (ie, they will stack exactly the same way)
2) the bounding box of all these layers is centered in the image

So if your imported image has layer which is wildly off-center, this pushes all other layers in the opposite direction when imported.


hmmmm. seems to work! Thank you for sharing.

I used the Multi Layer Action and executed Layer to Image size for all layers. Saved file under a new name.


Now when I import the new file as layers, the layers are centred. thank you


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group