Open main menu
Archive This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.

PNG preview of SVG file


I have a problem with the PNG preview (thumbnails) of File:Chinatown map WV.svg: here only the lower four layers are rendered correctly, while the upper five layers are not rendered.

I used Inkscape V 0.48

What did I do wrong? Can somebody be so kind and have a look at my file? Thanks.

Greetings --hdamm (talk) 10:38, 29 October 2015 (UTC)

Hello Hdamm this is indeed a strange bug. The culprit is the object with marker-mid="url(#StopM)" (railroad) in combination with the marker attribute orient="auto" (and some other, not yet known), I'll report this, thank you. PS: Could you please upload a version with real text?User: Perhelion (Commons: = crap?)  09:56, 3 November 2015 (UTC)
I've fixed the file and cleaned up the code from 1,27 MB to 69 38 KB (Inkscape is a bit poorly with text and pattern editing).User: Perhelion (Commons: = crap?)  15:25, 3 November 2015 (UTC)
Wow! Thank you very much, Perhelion.
1,27 MB to 69 KB is indeed a difference! Maybe some of the big size is owed to my conversion of fonts to paths?
Is there something that I could do about that? I'm asking, because there are some SVG files that I modified during the last 4-5 days (using Inkscape), with a size >2MB.
BTW where do you report this bug?
Greetings --hdamm (talk) 16:28, 3 November 2015 (UTC)
Hej, yes the most file-size was the text→path, the other was the bad pattern. I optimized again the file by using clones, the size is now 38 KB (I saw also some structure disappeared). The most hints are described here w:de:H:SVG #Text (this/your bug is not yet mentioned there). I reported it on w:de:WP:Phabricator. Keep working have fun. GreetingsUser: Perhelion (Commons: = crap?)  17:52, 3 November 2015 (UTC)
OMG! 38kB!
Thanks for the link. Greetings --hdamm (talk) 17:57, 3 November 2015 (UTC)
Hi! I can confirm this misbehaviour about layers. If you compare the png preview of the versions at file:Rakonto 01 (14).svg you will see that the first version is showing only the green circles. I grouped all the "output" and displayed it in a single SVG use statement. This workaround was fine for me. Regards Gangleri (talk) 04:57, 15 December 2015 (UTC)

making a dif of two uploaded versions

Hi! Is there a special page and / or a tool to make a diff between two uploaded (SVG) files? I want to compare!Rakonto_01.svg (old version) (newer version)

Best regards Gangleri (talk) 05:07, 15 December 2015 (UTC)

svg = text. You can use any text compare. there are also resources on the web. e.g. Your result (for one week) --Herzi Pinki (talk) 11:01, 15 December 2015 (UTC)
There is a JavaScript on Commons from User: Rillke which have such diff-function User talk:Rillke/SVGedit.js (but only to the last version).User: Perhelion (Commons: = crap?)  13:56, 15 December 2015 (UTC)
Where would I find that functionality? I've only found the possibility to show a diff of the changes made when manually editing the file, not a possibility to diff. Or is this what you meant and I simply misunderstood? --Patrick87 (talk) 19:52, 15 December 2015 (UTC)
See also and --Leyo 21:09, 15 December 2015 (UTC)
Very good!!   That would be a very nice feature for Commons/Mediawiki (text/code and visual, also for admins to decide on compare). @Patrick87 Yes, you are right (only manually). Such feature implementation would be very nice. What mean Rillke (and maybe Menner) about this?User: Perhelion (Commons: = crap?)  09:55, 16 December 2015 (UTC)