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
I’ve been investigating an issue in librsvg related to rasterizing SVGs that contain large translations in patternTransform. While exploring alternatives, I came across resvg, and I have to say—its performance and ease of use are truly impressive. Thanks for all the work on this project!
Given the original input SVG, resvg successfully rasterizes it at large output dimensions, which resolves the issue I encountered with librsvg.
However, I’ve noticed a slight discrepancy in pattern translation. When rasterizing with librsvg:
The output appears correct and aligns with how the SVG is rendered in Chrome, Firefox, and Safari. Using resvg:
resvg --width 2000 input.svg output-resvg.png
The result appears slightly shifted to the right:
librsvg
resvg
I’m uncertain whether the browser implementations are the definitive reference for correctness since opening the same SVG in Illustrator results in a completely shifted rendering (even though it was originally created in Illustrator 😁 ).
Given this inconsistency, I thought it would be valuable to report this case.
Let me know if any additional details would be helpful.
The text was updated successfully, but these errors were encountered:
Hi,
I’ve been investigating an issue in
librsvg
related to rasterizing SVGs that contain large translations inpatternTransform
. While exploring alternatives, I came acrossresvg
, and I have to say—its performance and ease of use are truly impressive. Thanks for all the work on this project!Given the original input SVG,
resvg
successfully rasterizes it at large output dimensions, which resolves the issue I encountered withlibrsvg
.However, I’ve noticed a slight discrepancy in pattern translation. When rasterizing with
librsvg
:The output appears correct and aligns with how the SVG is rendered in Chrome, Firefox, and Safari. Using
resvg
:The result appears slightly shifted to the right:
librsvg
resvg
I’m uncertain whether the browser implementations are the definitive reference for correctness since opening the same SVG in Illustrator results in a completely shifted rendering (even though it was originally created in Illustrator 😁 ).
Given this inconsistency, I thought it would be valuable to report this case.
Let me know if any additional details would be helpful.
The text was updated successfully, but these errors were encountered: