Commons:Graphics village pump/December 2015

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

PNG preview of SVG file

Hi.

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

https://upload.wikimedia.org/wikipedia/commons/archive/3/36/20151215042246!Rakonto_01.svg (old version)
https://upload.wikimedia.org/wikipedia/commons/3/36/Rakonto_01.svg (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. https://www.diffnow.com/ 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 https://github.com/blog/1902-svg-viewing-diffing and https://github.com/jrsmith3/diffsvg. --Leyo 21:09, 15 December 2015 (UTC)
Very good!! yes 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)