Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid pattern offset #221

Closed
JoKalliauer opened this issue Feb 21, 2020 · 4 comments
Closed

Invalid pattern offset #221

JoKalliauer opened this issue Feb 21, 2020 · 4 comments

Comments

@JoKalliauer
Copy link
Contributor

https://commons.wikimedia.org/wiki/File:Subglacial_Eruption-numbers.svg

rsvg resvg
Subglacial Eruption-numbers_r Subglacial Eruption-numbers_re

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

@RazrFalcon
Copy link
Owner

Yes, the pattern is a bit off.

@RazrFalcon RazrFalcon changed the title different placement than rsvg Invalid pattern offset Feb 22, 2020
@neinseg
Copy link

neinseg commented Jun 4, 2021

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:

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
gerbolyze-fail-pattern_fill-in gerbolyze-fail-pattern_fill-rsvg gerbolyze-fail-pattern_fill-out

Testcase 2: pattern_stroke.svg

resvg rsvg-convert gerbolyze+resvg
gerbolyze-fail-pattern_stroke-in gerbolyze-fail-pattern_stroke-rsvg gerbolyze-fail-pattern_stroke-out

Testcase 3: pattern_stroke_dashed.svg

resvg rsvg-convert gerbolyze+resvg
gerbolyze-fail-pattern_stroke_dashed-in gerbolyze-fail-pattern_stroke_dashed-rsvg gerbolyze-fail-pattern_stroke_dashed-out

@RazrFalcon
Copy link
Owner

Yes, resvg doesn't like tiny patterns. Will see what I can do about it.

@RazrFalcon
Copy link
Owner

Duplicate of #628

@RazrFalcon RazrFalcon marked this as a duplicate of #628 May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants