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

Linear gradients begin/end points not correctly set #46

Closed
frequent opened this issue Dec 14, 2015 · 3 comments
Closed

Linear gradients begin/end points not correctly set #46

frequent opened this issue Dec 14, 2015 · 3 comments

Comments

@frequent
Copy link

Linear gradients are not displayed when exporting to PNG because begin/end point coordinates are not set when creating the gradient. So instead of something like this:

<linearGradient id="svg_87" x1="0" y1="0" x2="1" y2="0">
   ...
</linearGradient>

the SVG source will only include this:

<linearGradient id="svg_87">
   ...
</linearGradient>

which when rendered as png does not display the gradient at all. The editor color fill menu, linear tab, does include the begin/end point parameters that need to be defined, but they don't make it into the svg source. See below:

screenshot 2015-12-14 at 4 35 57 pm - edited

If I set the coordinates by hand in the source code and then export the SVG to PNG, the gradient displays correctly.

@frequent frequent changed the title Linear gradients lack begin/end points when exporting to PNG Linear gradients begin/end points not correctly set Dec 14, 2015
@methodofaction
Copy link
Owner

Acknowledged. Fix should be easy but I won't have time to fix soon.

@methodofaction
Copy link
Owner

This is fixed now.

@frequent
Copy link
Author

Tops! Thank you very much!

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