Justified SVG on Lightburn

I have a problem importing the SVG. When I open it in HTML on Google, it opens normally. However, when it is placed in Lightburn, it shifts and ends up with the icons and images that should be justified one on top of the other.

Show screenshots of both, maybe upload the file here for us to test.


Esquerda
Centro

They are different images, but in lightburn it understands that they would be in the same position

What version of LB are you using? It works correctly for me in 1.7.07

the latest version, but the problem is not that, but that these two images are different in SVG, one is centered and the other is on the left, when placed in lightburn, they understand that it is the same thing, in the image I sent you can see that one is in the middle and the other on the left

I don’t really understand. Are you talking about the icons only? If those are SVG, just drag them to the position you like. If it’s a larger graphic (there are some buttons on one screenshot) those don’t look like SVG but PNG. Then it’s different.

This is what I see in LB.

1 Like

What I needed was to open an svg file in a standard position (example: 50x50), but that respected the spacing based on that point. In the svg I sent, one item is in position 7.6, in this case it would open at 57.6. The other svg is in position 16.45, in this case it would open at position 66.45.

You mean, the SVG file had a size, and you want the objects to stay inside correctly? LightBurn isn’t concerned with the sheet size you set for the SVG. It just imports the shapes. So all shapes are imported, and you can move them as a group to the desired position.

I opened both SVGs and the content is identical. The size is the same. LB only uses the shapes for the import. I can position them anywhere I like. The border around those shapes is just the minimal rectangle.

1 Like

I know it’s a problem that could be fixed manually, but I work on a production line and I just need it to replicate in the same position in which it is generated. Is there any other way I can do this?

Exactly as Melvin Explained

@LightBurn might provide a better technical explanation.
However, the “white” space is trimmed for SVG import.
The primitives are imported, not the white space around them.
I am not certain there is a way to stop this behaviour though.

In fact, most users had the opposite issue - which is why websites as https://svgcrop.com/ exist :slight_smile:

The only way I can think of to get the results you seek is to import with a bounding box. That will keep the positioning. Then delete the box after import, or have the bounding box layer color set to match one of Lightburn’s layers and have that layer’s output disabled so you don’t have to delete it.

2 Likes

I think drawing a rectangle around those shapes, with the shapes correctly positioned inside, will maintain their relative positions inside.

With a rectangle of the appropriate size, you could then dock it against tool-layer shapes in the LightBurn workspace (a fixed template for that type of job) to put its enclosed shapes in the proper positions.

Further, if you choose appropriate colors for the rectangle and shapes, then LightBurn would put the enclosing rectangle on a Tool layer and the shapes on an engraving / cutting layer.

Which assumes you have some degree of choice in the original SVG layout to make it work with LightBurn’s tools. If so, I think the whole job reduces to a couple of clicks with no manual intervention:

  • Load the LightBurn template file
  • Import the SVG rectangle + shapes
  • Dock the rectangle against the template shapes
  • Fire The Laser
  • Profit! :grin:

You explained it more clearly than I did.

Had breakfast in the middle of writing, so I didn’t see your note. Two heads are better than one!

It appears that you are working in pixels with the SVG, and the document size is 100mm x 150mm. Is this what you are looking for?
mimic

Hold the Shift key while you import the SVG and it will position the shapes exactly as they were exported. This may or may not be desirable, since SVGs have their origin in the upper-right, and your machine origin might not be.

1 Like