File talk:Kepler-Poinsot solids.svg

Latest comment: 5 years ago by Watchduck

@Tomruen: @Steelpillow:

In the SVG itself the red edges are visible for all solids, but in the generated PNG only for the gsD.

Does the licence come from Template:Inkscape-hand? Why would such images always have that licence? Watchduck (quack) 16:38, 14 September 2018 (UTC)Reply

The svg display OK in both Inkscape and when dowloaded from here for viewing in my Firefox web browser. An exported png from Inkscape also displays correctly. I edited it graphically using Inkscape after the hand-editing was done, so I don't think there are any significant issues on that score.
All the png renderings of any size, served by the Commons or Wikipedia, seem to suffer the same lack of red outlining. I guess there must be either a bug or in our svg-to-png converter or a very obscure Inkscape issue. Sorry, I have no idea about the licensing, you might like to contact the editors who got to it before I did. — Cheers, Steelpillow (Talk) 17:19, 14 September 2018 (UTC)Reply
As the red lines are shown for the gsD, it must be a bug that can at least be circumvented. I compared it in Inkscape, and found that the yellow face in the gsD has no stroke style, while the others have one. But removing it in the others was not the right thing either, as can be seen in File:Kepler-Poinsot solids test.svg. (Strangely I did not find the red anywhere, even when I clicked right on the red line.)
@Sarang: You usually understand such things. Any ideas? Watchduck (quack) 18:11, 14 September 2018 (UTC)Reply
OK, I took a look at the svg source. The red colour is specified in standard RGB hex as #ef2929, the yellow as #fce94f. Three polygons with id's "gde", "pnt" and "gic", are defined with style fill:#fce94f stroke:#ef2929. These are then copied and transformed as required to build the red-bordered shapes. Two of the figures use five triangles - search for xlink:href="#gde". Quite why the png renderer is picking up on all the yellow fills but only one group of red borders is something for its developers to explain, but I suspect it may lie in subtle differences in the coding of the two triangle groups id="g2473" and id="g3454". If it is their bug then they can fix it, if it is non-compliant code then I will, but I can see nothing wrong with the code and it is bad practice to just paper over their cracks for them. — Cheers, Steelpillow (Talk) 19:13, 14 September 2018 (UTC)Reply
Commons:Village_pump#SVG_rendering_problem. Watchduck (quack) 13:29, 16 September 2018 (UTC)Reply
Return to the file "Kepler-Poinsot solids.svg".