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

Gradient #561

Closed
AzamatIshmuratov opened this issue Jun 3, 2021 · 6 comments
Closed

Gradient #561

AzamatIshmuratov opened this issue Jun 3, 2021 · 6 comments
Assignees
Labels

Comments

@AzamatIshmuratov
Copy link

I open svg, gradients are not working correctly:
In original:
image

Actually:
image

Svg:
Oil_tank_massomer.txt

@AzamatIshmuratov
Copy link
Author

I looked at the original code (opened in a browser) and the code from the editor. Editor removes gradientTransform attribute from linearGradient

@AzamatIshmuratov
Copy link
Author

Can you give a direction, where to look for an error, maybe I will succeed

@jfhenon
Copy link
Collaborator

jfhenon commented Jun 3, 2021

Maybe the first thing you could do is to isolate the part causing the issue in a smaller svg. It would be easier to reproduce and identify the issue.

@AzamatIshmuratov
Copy link
Author

I need to observe that other parts have not changed during the editing process

@AgriyaDev5
Copy link
Contributor

AgriyaDev5 commented Jul 13, 2021

Can you give a direction, where to look for an error, maybe I will succeed

<linearGradient inkscape:collect="always" xlink:href="#SVGID_1_-7" id="linearGradient2868" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0.15833324,0,0,1.1666665,137.00002,-295.0264)" x1="59.9995" y1="-0.0361" x2="59.9995" y2="11.9639" />

File name: src/svgcanvas/svg-exec.js
method: convertGradientsMethod

gradientTransform convert to objectBoundingBox and gradientTransform attribute removed. here this problem occur.

@jfhenon
Copy link
Collaborator

jfhenon commented Sep 28, 2021

fixed

@jfhenon jfhenon closed this as completed Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants