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

getSVG returns undefined for gradient effects #369

Open
canoztokmak opened this issue Nov 2, 2016 · 0 comments
Open

getSVG returns undefined for gradient effects #369

canoztokmak opened this issue Nov 2, 2016 · 0 comments

Comments

@canoztokmak
Copy link
Contributor

canoztokmak commented Nov 2, 2016

Generator cannot generate svg result using getSVG method for layers with gradient effect when the first opacity stop is not at location 0%.

Tested with the attached sample file on PS 2015.5.1 and 2017.0.0 release.

svg result for 0% layer:

<svg
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink"
 width="573px" height="372px">
<defs>
<linearGradient id="PSgrad_0" x1="70.711%" x2="0%" y1="70.711%" y2="0%">
  <stop offset="0%" stop-color="rgb(53,148,161)" stop-opacity="1" />
  <stop offset="22%" stop-color="rgb(53,148,161)" stop-opacity="0.5" />
  <stop offset="90%" stop-color="rgb(53,148,161)" stop-opacity="1" />
</linearGradient>

</defs>
<path fill-rule="evenodd"  fill="rgb(217, 84, 154)"
 d="M0.000,0.000 L573.000,0.000 L573.000,372.000 L0.000,372.000 L0.000,0.000 Z"/>
<path fill="url(#PSgrad_0)"
 d="M0.000,0.000 L573.000,0.000 L573.000,372.000 L0.000,372.000 L0.000,0.000 Z"/>
</svg>

returns undefined for 20% layer.

samplesvg.zip

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

1 participant