-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align back/foreground layers with each layer separately #11
Comments
More info: After posting the above, I tried a different test. The layer groups are all the same size, let's say 750x900 px. They are stacked vertically in an image that is ~6000x900px. For this test, I changed [mybackground] layer to be the size of the full image, and filled it with a solid color. Then I exported the layer groups again. This time the one with the transparency DID show the solid color. So I guess I misunderstood the way the background option works: It shows the background at the same place in the full image where the layer group is located. Nothing wrong with this in principle, I am sure this case occurs a lot, such as changing background colors en masse as I did in this test. But there is a different use case here too, which is what I had intended: when the layer groups are cropped to the layer size (in my case they are all the same size, imagine them as banner ads, e.g.) then I would suggest that the square bracket background layer (if also the same size) be applied directly with the layer group aligned as an overlay. The benefit here is that that can truly have just one copy of a shared background when there are many variations of the somewhat similar images I am trying to create. Is this possible? Hope this all makes sense, happy to check back soon to see if there are any questions and to clarify as needed. |
If I understood correctly, you want the background layer(s) to be aligned with each layer. By aligning, do you mean centering the background layers around each layer? In any case, the plug-in can't do that (as you found out, the background layers stay at the same place in the image), but it's no problem for me to make such an option. I don't know when I'll be able to do this, though, as I currently have little spare time on my hands. :( |
Thanks for the prompt response. Yes, I was thinking to align the background layer with each of the other layers. Since in my case, all the layers/layer groups are the same size, the alignment is not critical as they are all the same. if the layers are not all the same size, then it becomes a little more complicated, requiring some options from the user in the dialog. In rethinking my own workflow based on your response, I should be OK if I place all my layers and layer groups at the same location (upper left = 0,0), and hiding/unhiding as needed to edit the design. Originally I wanted to have them all visible at the same time, but I can get by that way for now. |
Not sure if I understand completely now, so I'll list all of the possible options I could think of. :P If you want adjust the alignment of all background layers, I can think of the following alignment options:
If you want to adjust the alignment of each background layer separately, or, adjust the alignment of all background layers for each regular layer separately, then it gets more complicated. Edit: Rather than typing this information in the layer names, I think I thought of a much more satisfying way to individualize any settings for each layer directly in the dialog should the user wanted that. I added this as an enhancement. |
Hi, I realize this is quite a bit late, but I believe aligning background layers against the current layer and vice versa should now be possible with the latest version of Export Layers and this script.
|
I have a file with six layer groups. When I export layers, all works fine, I get six images as expected.
Since the layers all share a common design element as background, I thought to factor that out into its own layer, named "[mybackground]". This is not in a layer group.
For test purposes, the first five layer groups are left alone, and the sixth I removed the design element, leaving an ample layer of transparency. The background layer is a solid color covering the entire area.
All the layers are the same size.
When I select advanced option: use square bracket named layers as background, I did not get what I expected. For the first five, I expected the same image, and for the 6th layer group I expected the background layer to show through the transparency. The first five were correct, but the 6th did not include the background layer at all, and just the transparent area shows along with the other layers in the layer group.
I have tried this with [mybackground] layer both above the list of layer groups in GIMP, and below the entire list. The results were the same.
System: Fedora 20, Gimp 2.8, your plugin v 2.2. System is fully up to date.
Question: Am I doing something wrong, or is there a bug?
Otherwise, this is an awesome plugin, doing exactly what I need. Thanks for your work!
The text was updated successfully, but these errors were encountered: