-
Notifications
You must be signed in to change notification settings - Fork 55
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
gradientTransform on linearGradient is not supported #112
Comments
Hi @thomasheinen, thanks for posting. That's an absolutely enormous SVG file you've supplied—could you please narrow the scope for me by paring it down to a minimal file that still reproduces the error? Happy to dig into it at that point. |
Hi @mogest Thanks for your fast reply. You are right, sorry. It was not very thoughtful of me to whip such a big file into your face. 😄 Please find attached a minimal example. The black circle is rendered correctly. The blue "egg" vanishes in the PDF, but is rendered in external programs and the HTML version correctly. |
Ah, OK the first clue is that it does spit out a warning:
I don't actually know what that even means (yes I wrote that error message!) so I'll go looking. |
Ah, OK. Because the I took those attributes out and it doesn't render correctly (it looks like it's missing the fade-out altogether.) I tried a bit of hackery, the gradients are handled by Prawn but I managed to monkey patch the method that applies the transformation matrix to the gradient and multiply the supplied gradient on the attribute. Unfortunately I must be misunderstanding something, because it's all one colour after I do that. This is probably not a super easy fix I'm sorry to say. I'll keep it open in case I want to beat my head against a wall sometime :) |
Hm okay. Maybe we'll have a look at it ourselves, but we are no Ruby programmers here. 😅 We are just using ASCII Doc for some fancy reporting in our framework and stumbled upon the problem with that SVG. Thanks for looking into it anyway, and some hard head-banging on your side would be much appreciated. 😉 🤘 |
Would you believe... I actually managed to get it going. Still needs a lot of tidying up since I have to monkey patch Prawn (their release cycle is slow) but if you want to try it out on the |
Also implements the missing skewX and skewY transforms to normal transforms. Requested on #112
All done, it'll go out with the next release. |
I can confirm that the patch is working. Thanks very much for your effort. 👍 |
Hi,
I have encountered an SVG which is not correctly rendered. Only the outer black ring is shown. The inner blue flames are not rendered at all. Batik and other programs render it correctly.
I have two versions of the same SVG (converted with inkscape from EPS using different converters). Both are not working.
I don't think this issue is related to #85 or #87 but I might be mistaken.
Could you please look into it? Thanks in advance.
Thomas.
broken-svgs.zip
The text was updated successfully, but these errors were encountered: