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

linearGradient does not support stop-opacity attribute #117

Open
habamax opened this issue Feb 18, 2020 · 2 comments
Open

linearGradient does not support stop-opacity attribute #117

habamax opened this issue Feb 18, 2020 · 2 comments

Comments

@habamax
Copy link

habamax commented Feb 18, 2020

I have created issue in asciidoctor-pdf asciidoctor/asciidoctor-pdf#1561
But not sure if it is related to asciidoctor-pdf itself.

So there is a simple box with a linear gradient created in inkscape:

image

asciidoctor-pdf renders it

image

svg-file: box-gradient.zip

Thank you!

mogest pushed a commit that referenced this issue Mar 28, 2020
@mogest
Copy link
Owner

mogest commented Mar 28, 2020

Hi @habamax. Unfortunately prawn-svg doesn't support the stop-opacity attribute and there's no easy way to make it support it as prawn doesn't either.

There was another thing about your sample svg that prawn-svg didn't support (a gradient using an href to inherit from another gradient). I've implemented that, but it doesn't help in your specific case I'm sorry :(

@habamax
Copy link
Author

habamax commented Mar 28, 2020

Hi @mogest , indeed, @mojavelinux explained it to me.

Too bad inksape does simple gradients in unsupported way, but well, that is life :)

Thank you!

@mogest mogest changed the title Rectangle with linearGradient is not rendered (in asciidoctor-pdf) linearGradient does not support stop-opacity attribute Jul 4, 2020
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

2 participants