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

Result if far too different #79

Closed
launchpad-issue-importer opened this issue Aug 28, 2016 · 6 comments · Fixed by #109
Closed

Result if far too different #79

launchpad-issue-importer opened this issue Aug 28, 2016 · 6 comments · Fixed by #109

Comments

@launchpad-issue-importer
Copy link

launchpad-issue-importer commented Aug 28, 2016

Optimizing loses some elements.


Imported from Launchpad using lp2gh.

@launchpad-issue-importer
Copy link
Author

(by andresm-plast)

@launchpad-issue-importer
Copy link
Author

(by jazzynico)
Confirmed on Ubuntu 10.10, Inkcape trunk revision 10220 (scour 0.26).

  • Two of the three boxes' gradient are converted to flat color.
  • The bottom left connector's marker is badly placed on the right of the left box.

@launchpad-issue-importer
Copy link
Author

(by jazzynico)

@launchpad-issue-importer
Copy link
Author

(by louis-simard-deactivatedaccount)
Rendered in Firefox 3.6.17/Linux, I do see that 2 of the 3 rounded rectangles have lost their white gradient, but I don't see a bad marker. Where is it?

@launchpad-issue-importer
Copy link
Author

(by jazzynico)
The marker issue may be due to a connectors bug in Inkscape.
Attached, a screenshot taken on Windows XP with Inkscape r10221.

@Ede123
Copy link
Member

Ede123 commented Aug 29, 2016

Marker issue is definitely fixed (I made sure of that in 842123a).

The gradient is still removed. I reduced the testcase and tracked down the issue:

<?xml version="1.0" encoding="UTF-8"?>
<svg height="600" width="600" xmlns="http://www.w3.org/2000/svg">
    <defs>
        <radialGradient id="a" cx="10%" cy="10%" r="100%" fx="10%" fy="10%">
            <stop offset="0%" stop-color="#ffffff" />
            <stop offset="100%" stop-color="#ffffcc" />
        </radialGradient>
        <radialGradient id="b" cx="10%" cy="10%" r="100%" fx="10%" fy="10%">
            <stop offset="0%" stop-color="#ffffff" />
            <stop offset="100%" stop-color="#ffffcc" />
        </radialGradient>
    </defs>
    <rect x="0" y="0" width="100" height="80" rx="10" ry="10" fill="url(#a) #ffffcc" />
    <rect x="0" y="0" width="100" height="80" rx="10" ry="10" fill="url(#b) #ffffcc" />
</svg>

The problem is the specification of a fallback background color in fill="url(#b) #ffffcc".
When scoured the identical gradients #a and #b are merged, but the reference is not updated properly. (As I was sceptical myself: This type of specification seems to be valid, see SpecifyingPaint, specifically the entry <funciri> [ none | currentColor | <color> [<icccolor>] ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants