resvg
resvg copied to clipboard
Invalid pattern offset
https://commons.wikimedia.org/wiki/File:Subglacial_Eruption-numbers.svg
rsvg | resvg |
---|---|
![]() |
![]() |
The stone labeled with 6 are higher in rsvg than in resvg maybe nummeric issues? (don't know which one is correct)
PS same for https://commons.wikimedia.org/wiki/File:Submarine_Eruption-numbers.svg
Copyright
source https://commons.wikimedia.org/wiki/File:Subglacial_Eruption-numbers.svg
author Sémhur
license https://creativecommons.org/licenses/by-sa/4.0
Yes, the pattern is a bit off.
I can confirm this. I'm running resvg v0.14.1. Several testcases are attached below.
When you flick between these testcases you will also notice that scale seems to be off as well.
Attached are three test cases:
- resvg output
- rsvg-convert output.
- output of
gerbolyze/svg-flatten
| resvg
gerbolyze is the svg-to-svg converter that I'm working on atm. It processes patterns down to individual <path>
s.
Note that gerbolyze and rsvg-convert both agree very well, with resvg being the odd one out. BTW, while it may be legal by spec I think it would be great if resvg could try harder to produce less of a blurry mess for small patterns.
Here are the input SVG files (as zip to make github happy): resvg-testcases.zip
Testcase 1: pattern_fill.svg
resvg | rsvg-convert | gerbolyze+resvg |
---|---|---|
![]() |
![]() |
![]() |
Testcase 2: pattern_stroke.svg
resvg | rsvg-convert | gerbolyze+resvg |
---|---|---|
![]() |
![]() |
![]() |
Testcase 3: pattern_stroke_dashed.svg
resvg | rsvg-convert | gerbolyze+resvg |
---|---|---|
![]() |
![]() |
![]() |
Yes, resvg doesn't like tiny patterns. Will see what I can do about it.
Duplicate of #628