Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Align side by side horizontally - No gaps. - SOLVED
#1
Question 
Hello All,

I'm having the following difficulty:

I have several layers, they are all the same height but differ in width;
All are now aligned vertically;

I want to align them horizontally so that they are juxtaposed; as close together as possible without overlapping.

Ideally, the top layer should be on the left of all layers, followed by the layer below it on its right, and so on until the last layer is positioned at the other end of the horizontal (on the right).

With Inkscape there is the option:
"Move objects as little as possible so that their boundings boxes do not overlap."

I tried it with the Alignment Tool, but I never really understood this tool, and I didn't get that kind of alignment.

I thought the "Distribute targets evenly in the horizontal " option would do the job, but not even close.

How could I achieve this alignment optimally?

Thx!


Insisting I found a solution.

I had to sum the width of all the layers (I only used 6 layers in this experiment) and then increase the width of the canvas size to that value.
After that, "Distribute targets evenly in the horizontal" did the desired alignment.

But having to sum the width of a hundred layers is daunting.  Undecided


I was wrong, I noticed now that there was overlap between the layers after using the technique described above.  Blush


Solved!

The arrange-layers-0.2.py plugin does just what I need!

I know which is the widest layer among the approximately 100 layers.
I multiply the number of layers by that width and the result I use as the canvas width value.

So just apply the arrange-layers-0.2.py plugin and like magic everything lines up!!

Thx Ofnuts! (I'm pretty sure this is your plugin)
                               .....
Samj PortableGimp 2.10.28 - Win-10 /64.
Reply
#2
(09-03-2022, 03:45 AM)Krikor Wrote: The arrange-layers-0.2.py plugin does just what I need!

Thx Ofnuts! (I'm pretty sure this is your plugin)

Yes it is, but if you don't really know if it's mine means implies that you downloaded it from some untold source?
Reply
#3
Filters ➤ G'MIC ➤ Layers ➤ Pack
No calculation needed it just create a new image or new layers at the right size and no gap in between

   
Reply
#4
(09-03-2022, 07:50 AM)Ofnuts Wrote:
(09-03-2022, 03:45 AM)Krikor Wrote: The arrange-layers-0.2.py plugin does just what I need!

Thx Ofnuts! (I'm pretty sure this is your plugin)

Yes it is, but if you don't really know if it's mine means implies that you downloaded it from some untold source?

Over time I end up forgetting which plugins I have and even how some of them work. Remembering where I downloaded them from is an impossible mission in many cases.

I was just digging through the menus, digging through some plugins in an attempt to see if they could help me with the question presented in this topic.

That's when I came across the suggestive name of "Arrange layers" in one of the menus.

I no longer remembered this plugin or how it worked, but it was exactly what I was looking for.

01- In Browser plugin, the plugin does not appear;
02- The prefix "ofn-" that 'generally' comes in your plugins, was not present in this case.

Hence my uncertainty as to the authorship of the plugin.

But as for downloading from a source other than the "Bat-page" it's totally unlikely:  Dodgy

When I download a plugin by Ofnuts that has documentation, I file that documentation in a specific folder. Just the documentation, without the .PY files.

So, when I need to remember how to use a plugin, that's where I'll make my first query.

03- I'm not sure why; since this file has no documentation, but it is precisely in this documentation folder.

This demonstrates that I knew the origin and authorship of this plugin. (I just didn't remember for sure)
   
Even if I find some interesting plugin by Ofnuts on the web (a blog, forum, etc.), I know where I can find a reliable, updated version of this plugin for downloading!  Wink

(09-03-2022, 04:25 PM)PixLab Wrote: Filters ➤ G'MIC ➤ Layers ➤ Pack
No calculation needed it just create a new image or new layers at the right size and no gap in between

PixLab,

[Image: 8zvcJNf.png]
Wow!

I took a look now. I did a simple test. Tomorrow I will try in detail, but it looks like it is super promising!

At no time did I think of researching any possibility in the G'MIC, no thoughts in that sense. I should try to get more familiar with this tool.

Thx!
                               .....
Samj PortableGimp 2.10.28 - Win-10 /64.
Reply


Forum Jump: