You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since metrics offers a lot of options, the resulting SVG image height needs to be computed dynamically.
This is done through a headless puppeteer instance which spawns a browser page and retrieve the getBoundingClientRect() to get dimensions.
However, because the rendering is dependant on the operating system, browser and installed fonts, SVGs might actually change across different platforms and result in oversized or cropped images.
Unfortunately I don't think there will be an easy fix, however you can try to mitigate this issue by manually setting config_padding values, which will increase or decrease height/width.
If you know how to fix it, feel free to open an issue or comment
The text was updated successfully, but these errors were encountered:
Since metrics offers a lot of options, the resulting SVG image height needs to be computed dynamically.
This is done through a headless puppeteer instance which spawns a browser page and retrieve the
getBoundingClientRect()
to get dimensions.However, because the rendering is dependant on the operating system, browser and installed fonts, SVGs might actually change across different platforms and result in oversized or cropped images.
Unfortunately I don't think there will be an easy fix, however you can try to mitigate this issue by manually setting
config_padding
values, which will increase or decrease height/width.If you know how to fix it, feel free to open an issue or comment
The text was updated successfully, but these errors were encountered: