Path "Scale" function does not work correctly

Context: the render on “Fit center” mode does not work correctly. Please fix this.

Device: Samsung Note 20

App version: 3.81b531008

When set the path scale function to “auto (100 x 100), it rendered this:: The Output image

NOTE: i add the square to distinguish between two scale modes.

While on “Fit center”, it gives this output: The Output image

The problem is that the render looks same to what on the Auto (100x100) mode while scale is set to Fit center.

I did try disabling Pararell rendering but no work.

The issue is likely a stuck bounding box or an internal offset in your SVG code. Try these two quick steps:

Manual Toggle: Switch Scale to Auto, then back to Fit Center. This forces Kustom to recalculate the frame.

Check Start Point: Ensure your Path string starts at 0,0 (e.g., M 0,0). If it starts with an offset like M 100,100, Kustom includes that empty space in the centering, causing the shift.

1 Like

Well, i think think i should test the second one, very thankful for the answer!! :melting_face:

Edit: the second one didnt work, maybe because my svg is out of bound? (Mine is 1000x626). Will it work if i resize it to 100x100? (Not minding deformation)

I just tested a simple rectangle path with Fit Center, and it works perfectly on my end.

It’s hard to guess without seeing the actual data. Could you please paste your Path code here? I’ll test it on my end to see exactly what’s causing the shift and check if there are any hidden offsets or bounds issues. It’s the fastest way to fix it.

M0,42.5 C0,19.028 19.028,0 42.5,0 H957.5 C981.16,0 1000,19.028 1000,42.5 V319.6 C1000,343.072 981.16,362.1 957.5,362.1 H650 C636.739,362.1 624.021,366.578 614.645,374.548 C605.268,382.518 600,393.328 600,404.6 V489.6 C600,500.872 594.732,511.682 585.355,519.652 C575.979,527.622 563.261,532.1 550,532.1 H42.5 C19.028,532.1 0,513.072 0,489.6 V42.5

Here is my code, it is whatever it show tho.

I’ve run multiple tests with your code, and it’s definitely a Kustom bug. The app’s engine fails to calculate the path’s scale on startup, causing it to look flat.

Since Path objects only support ‘Auto’ and ‘Fit Center’, there’s no way to lock the height with a formula to prevent this.

In this case I’d recommend using a ready SVG, or even better — creating an icon font from that shape. A font is much more flexible and works better than an SVG.