for quite some time I have noticed a wired offset between my image and the applied image mask. It’s probably “just 1 pixel” but if a fine mask is applied to a very huge image it get’s very annoying, see pictures below.
I think the geometry doesn’t really matter. In my examples they were SVGs. But you can also just put any geometry from within Lightburn over the image as an image mask, like here:
You’re starting with a fairly low resolution image, then taking a small portion of it, and then tremendously increasing the DPI for that small portion. The accumulated errors in that process exaggerate any misalignment.
There may be some level of inherent misalignment resulting from rounding that may or may not be a bug.
At this moment, you’ll only be able to affect the former. You can mitigate this by working with higher resolution input. Here’s an example where the input resolution of the image is 2x the output resolution.
I’ve also noticed this behavior in the past with higher resolution images, but it’s indeed not that prominent. But that’s why I came to the conclusion that it might be a bug (an offset by 1 pixel, maybe because of rounding issues or whatever).
Unfortunately I can’t just upscale my image and apply the mask afterwards so that this offset is not that much of a deal because the image will get that big that Lightburn will just crash (or take forever to process or the resulting RD file will not fit within the 100 MB memory of my Ruida controller).
So I’m humbly hoping that it is something that went unnoticed so far and could acceptable easily be fixed.
As long as the final dpi is the same I don’t see why input size would make a difference.
Part of the misalignment is going to be inherent in the process. The resampling process that LightBurn goes through will be limited in resolution by the DPI set. So all raster components will be quantized to that DPI limit and basically fit into a grid. The lines in the mask don’t follow the same limitation and are limited to the rounding within LightBurn. This will always result in a discrepancy between DPI grid to outline.
How do you plan to use this in the end? Are you using the mask to cut out the shapes or is it only as an outline?
If cutting out, then perhaps use a strategy where the image bleeds beyond the cut shapes. So you’d have separate layers for the mask and the actual cut. Where the mask is thicker than the cut shapes.
If this is an outline then perhaps integrate the outline into the raster image and don’t rely on Image mask functionality for the outline.
I will try to do that and I will come back with my results. I recall trying that in the past and having some issues with that approach, but I might be mistaken.
This is indeed a nice approach that I will also try as it will get cut out. In the past I have copied my geometry and have aligned it until it has fit with the image. But that was a quite tedious task.
Nevertheless, I would appreciate it if the Development Team could evaluate this as well and see if it’s something that might be fixed within Lightburn in the future.