Wikipedia:SVG help/Archive 4

File:Carbon_cycle-cute_diagram.svg
Tried twice to get this Inkscape SVG working (convert to Plain SVG, Stroke To Path) but it still getting librsvg-ERROR Dub4u (talk) 03:48, 1 June 2010 (UTC)
 * Just reverted to the last good version. Still looking for help though. Dub4u (talk) 03:52, 1 June 2010 (UTC)
 * I'll look at this in ~8 hrs. User A1 (talk) 10:23, 1 June 2010 (UTC)
 * Sorry, what is the problem? Everything looks OK from my end... User A1 (talk) 17:23, 1 June 2010 (UTC)
 * I reverted the bad versions. Just take a look at the version from 06:35, 1 June 2010. The thumbnail can not be created. Dub4u (talk) 04:52, 2 June 2010 (UTC)
 * I have been unable to reproduce this locally I am afraid, everything works on my machine. I will have another try in ~11 hrs... User A1 (talk) 09:57, 4 June 2010 (UTC)

I am going to have to compile and old version of RSVG, but I cannot do it right now. Next couple of days User A1 (talk) 02:03, 6 June 2010 (UTC)

Well I'm still looking for help here. I understand though if it is too much of an effort. Dub4u (talk) 15:11, 30 July 2010 (UTC)
 * Sorry -- the libRSVG error problem is gone now, right? I cans ee it on commons -- the preview works. Is there still some problem? User A1 (talk) 22:47, 30 July 2010 (UTC)
 * My latest version still can not be created as a thumbnail. The most recent version on commons is the last good working version of the file (without libRSVG error) but that is not my own latest version that results in libRSVG error. My latest version is the the one from 06:35, 1 June 2010. Since it could not be created as a thumbnail I reverted the commons file back to the old version that had no problems. So if you only look at the newest file you will not be able to produce the error. Or am I missing something? Dub4u (talk) 05:38, 5 August 2010 (UTC)

File:Mineral content of igneous rocks.svg
Oh, why did I use Arial?! On the SVG help it suggests other fonts similar to Arial, but none of them seem to be available in my Inkscape. Is there an easy way to fix that? Or is there a good sans serif alternative that is available on a default Inkscape? Or can I skip that laborious process and convert to paths (I know, not recommended, :-/).

The other problem is that I have two lines at the bottom with a gradient fill that aren't showing up. I've tried a few things, mostly with layers and such, and they insist on not appearing once I've uploaded to Commons. They're definitely inside the page's bounding box. Any ideas? I can upload a .png for comparison if necessary. Thanks!  Mae din\ talk 20:11, 1 June 2010 (UTC)
 * OK, I did a find and replace on arial for DejaVu Sans, that fixed one problem, though whether or not you like the font is up to you. Alternatives include bitstream vera sans. Check out meta for a list of supported fonts. If you are running Linux or Mac, you should have these? If you are running windows there may be installers on the DejaVu sans website for Deja vu, otherwise you may need to find whether someone has prepped a font pack.
 * The second problem was due to the "marker" tag. I removed this and everything is fine. User A1 (talk) 20:50, 1 June 2010 (UTC)
 * I'm feeling a little lazy, I didn't update the gradient on the markers, so now they don't blend in. Sorry -- you'll have to fix that. User A1 (talk) 20:51, 1 June 2010 (UTC)
 * That's okay, thanks very much! What is a "marker" tag?  And why was it there?  And how do I remove it myself?
 * Thanks for the font advice, I will get DejaVu installed or boot in Linux.  Mae din\ talk 21:14, 1 June 2010 (UTC)
 * The marker tag is for the end arrows on the lines. Unfortunately, the renderer used by wikipedia (rsvg) does not play nicely with these. I removed it with a text editor. User A1 (talk) 21:21, 1 June 2010 (UTC)
 * I don't think I have any arrows now (I'm sure you noticed that the ones there are makeshift ones), but I had started to use arrows so I will probably just re-make the last few parts.
 * Do you know why the curved MAFIC and FELSIC text on the .svg isn't showing up on the .png?  Mae din\ talk 06:53, 2 June 2010 (UTC)
 * The text is showing up for me, maybe you need to purge your local browser cache? (WP:CACHE) User A1 (talk) 09:11, 2 June 2010 (UTC)

File:Passivhaus-Querschnitt.svg
This Inkscape-SVG isn't displayed and I don't know where the error is. --MartinThoma (talk) 06:45, 4 June 2010 (UTC)
 * The Passiv-Haus logo was embedded in the image as raster data using base64. Thats not scalable, so it is not quite right. I will reupload the image without the logo. User A1 (talk) 10:05, 4 June 2010 (UTC)
 * Its still not fixed. will look again in ~11 hrs. User A1 (talk) 10:11, 4 June 2010 (UTC)
 * The raster image was there since some versions - all are rendering correctly. Of course, the raster image is not the best - but better than nothing. Should be included again. Cheers --Saibo ( Δ ) 11:25, 4 June 2010 (UTC)
 * Please don't include the logo: besides being technically unwanted, it's basically a watermark and is also copyrighted! Including it would result in a copyright violation. —Quibik (talk) 12:37, 4 June 2010 (UTC)
 * Copyright aside (but still important), technically the logo should not be included as raster data, but should be redrawn to be scalable, otherwise you defeat the purpose of SVG. I haven't time to look at this quite yet, but will so as soon as I can. User A1 (talk) 15:25, 4 June 2010 (UTC)

I tried some changes (see uploads) and now it works again. Can anybody please tell me why it works now again? --MartinThoma (talk) 15:41, 8 June 2010 (UTC)


 * the file has changed dramatically, I cannot quite say why I am afraid, however I suspect that there may be multiple causes. User A1 (talk) 19:51, 13 June 2010 (UTC)

File:Unix vs windows.svg
The Unix/Windows text isn't appearing where it should be, and the years aren't separated. It appears fine in inkscape. Smallman12q (talk) 13:18, 5 June 2010 (UTC)
 * RSVG doesn't play well with "tspan" elements. I have replaced them with straight text elements. User A1 (talk) 02:01, 6 June 2010 (UTC)

Arena svg
✅ User:Mabdul has created an svg timeline for Arena (web browser), but it currently uses some html elements and hence can't be uploaded. Could someone please strip it down to svg that the wiki will accept? The source is below:

I have managed to strip it down a bit to

but it still needs a little more work.Smallman12q (talk) 01:54, 8 June 2010 (UTC)
 * Wikipedia will not support scripted SVGs (I dislike document scripting myself.)-- things like onload won't work. You will need to strip it back to remove any scripting elements. Try User:Aarchiba/SVG_sanitizer. Sorry, I am a bit pressed for time at the moment. I have a few pending requests here that I can look at in ~12 hrs, User A1 (talk) 09:16, 8 June 2010 (UTC)
 * OK, so I have uploaded a version File:Arena_browser_Timeline.svg, here. I am uncertain if it is what you are looking for. There appear to be significant errors in positioning, probably as a result of the missing script, but the correct positions is somewhat of an artistic decision, so I will say it is out of my scope. User A1 (talk) 22:34, 8 June 2010 (UTC)
 * OK, will check this later this week. Have to work because of soccer WM. The errors will be removed, shouldn*t be so difficult. mabdul 12:23, 14 June 2010 (UTC)
 * Ok, I updated the svg with my version. looks really better my version ^^ thx for all. mabdul 14:04, 22 June 2010 (UTC)

File:Braille8dotCellNumbering.svg
The black dots are numbered 1-8. I put the number in the dot (font color white), about half the height of the dot. After uploading, the font size is small (almost invisible). Font is DejaVu Sans Mono, as recommended (not Courier New). Made in MS Visio, then Save As svg. btw, the pre-upload file in Firefox looks OK, but in GIMP2 it has the same error. Could someone take a look? -DePiep (talk) 11:18, 9 June 2010 (UTC)
 * Bug 13494. Really it is an RSVG bug -- so called "em units", as exported by visio (relative to current font size) units are not handled properly. I have uploaded a version without this. User A1 (talk) 19:07, 9 June 2010 (UTC)
 * Thanks. Could you describe what I should do next time? -DePiep (talk) 22:42, 9 June 2010 (UTC)
 * Open up the file in a text editor with syntax highlighting support, such as windows: Notepad++, linux: gedit/kwrite or mac: Smultron, then search for "font-size"; this should be in the CSS "CDATA" section. Find the font-size:1.2345em bit, then remove the "em". This will set the font size in absolute units. You may need to tune the number to get the correct final font size. if you are familiar with regular expressions something like 'font-size\:[0-9]*\.?[0-9]+em' might find it (sorta, you will need to correct that, my regex skills are a bit weak. User A1 (talk) 08:18, 10 June 2010 (UTC)
 * Clear. Good description, thx. -DePiep (talk) 09:59, 12 June 2010 (UTC)

Issue with an .svg file, error generating thumbnail
Moved from WP:VPT

Hi. Yesterday I uploaded. MediaWiki seems to have trouble to make a .png out of it. When I try to view the SVG in png, I get a magnificent error page : Error generating thumbnail

Error creating thumbnail:
 * (rsvg-convert:32653): CRITICAL **: cr_parser_new_from_buf: assertion `a_buf && a_len' failed


 * (rsvg-convert:32653): CRITICAL **: cr_parser_set_sac_handler: assertion `a_this' failed

(rsvg-convert:32653): librsvg-WARNING **: Error setting CSS SAC handler


 * (rsvg-convert:32653): CRITICAL **: cr_parser_destroy: assertion `a_this && PRIVATE (a_this)' failed

librsvg-ERROR **: _rsvg_acquire_xlink_href_resource called for external resource: " base: (null)

aborting... Is it a known issue? Is there already a bug about this issue at Bugzilla? Dodoïste (talk) 23:34, 24 June 2010 (UTC)
 * The SVG contains a reference to, probably the original image, on the harddrive of the person who create the SVG. That is not allowed for security reasons and thus the thumbnailing software will report an error. —Th e DJ (talk • contribs) 23:38, 24 June 2010 (UTC)
 * Huh? I'm not sure I understand your answer. Am I meant to fix something as the author of the SVG? Did I do something wrong? If so, you might want to provide instructions understandable by an end-user in the error report.
 * The most strange thing is that I can view the .svg by clicking on the link of the file. The SVG seems to be fine. Maybe the issue lies in the conversion to PNG? Yours, Dodoïste (talk) 00:08, 25 June 2010 (UTC)
 * TheDJ, the SVG doesn't seem to contain any references to external resources (only one PNG included through  URI). Also, if the problem was with external resources, I think the error message would mention it ( does).
 * Dodoïste, I think you should ask at SVG Help. Svick (talk) 02:17, 25 June 2010 (UTC)
 * Thanks Svick. :-) Dodoïste (talk) 03:12, 25 June 2010 (UTC)
 * That image needs some serious optimization. The embedded PNG mentioned above is displayed with an opacity of 0.1, so it's basically invisible and may as well be removed. And is there really a need for the image to contain lorem ipsum with letters converted to paths, when the image is unlikely to ever be used large enough for it to be legible? Especially in the back sheet of paper where most of it will never even be visible? Greeking would be useful, but even embedding the text as text would probably give a significant size savings. Anomie⚔ 02:39, 25 June 2010 (UTC)
 * I'm well aware that it need optimization. 2Mo is way too large for an icon. But it's only to work on a draft for the Pending Changes icon. It's easier to edit .svg drafts than .png. Since it didn't work, I made File:Pending changes needing review.png.
 * File:Pending-changes-magnifying.svg is already in use on en.wiki, and it needs optimization badly. Your help is welcome. Dodoïste (talk) 03:12, 25 June 2010 (UTC)
 * I have fixed File:Pending-changes-magnifying.svg. It has gone from ~1.5MB to ~410kB. User A1 (talk) 13:22, 27 June 2010 (UTC)
 * I have also fixed File:Pending changes needing review.png. It has gone from 2MB to ~354 kB. I was unable to reproduce errors on my local machine, however I suggest that base64 data is not helpful (not sure what it was trying to do..) and that the file contained a lot of path data. This might overflow fixed buffers in older versions of RSVG? Thats a guess. that said, things like the world map render, and that has more path data. Of course much better optimisations could be achieved by ditching the path data, and actually choosing a font that looks like the artwork you are trying to achieve, as mentioned above. User A1 (talk) 13:49, 27 June 2010 (UTC)
 * Thanks a lot, A1. :-) Your fix solved the issue, and your optimization is very helpful. Especially for File:Pending-changes-magnifying.svg that is already in use on en.wiki. Yours, Dodoïste (talk) 20:06, 4 July 2010 (UTC)

File:FranceEuroCirconscriptions.svg
The text at the bottom has a typo. "n'est par montrée" should be "n'est pas montrée". 72.85.220.152 (talk) 13:41, 25 June 2010 (UTC)
 * OK, I'll take your word for it (non-french speaker), but I can tell you how to fix it next time, so that this can be resolved quickly, if you so choose.
 * Install a copy of Inkscape, if you are running mac OSX you may need to follow the instructions. If you are running some form of linux, it will be listed in your package manager. If you are running windows you will need to download it from the website. Download the SVG file by right clicking on the image and select "save link as" or "save target as" or some such (NOT save IMAGE as, this will only save the preview image). Once done, run inkscape then select in the menu File->Open. you should be able to locate the file on your computer somewhere (wherever you downloaded it to). Then select the text tool in the left hand side (as symbolised by the "A" and use it to directly interact with the text. The text may be grouped, so you may not be able to select it directly. If you cant, simply use the arrow tool on the left, and then select the object, then choose from the menu Object->ungroup. You may need to repeat that a few times until you can select the text. Once you have made your changes, simply save the file and re-upload it. Unfortunately uploading to commons requires an account.
 * If you have any questions, please ask. User A1 (talk) 12:51, 27 June 2010 (UTC)

File:IUPAC-alkane-2.svg
The text "incorrect numbering" should be within the parentheses (like in ). 72.85.220.152 (talk) 12:15, 26 June 2010 (UTC)
 * Fixed. Tspan usage was causing the problem. I have broken the text into three objects. User A1 (talk) 12:43, 27 June 2010 (UTC)

File:Lesser_Poland_flag.svg
There are many flags whose borders should be edited out. 72.85.220.152 (talk) 18:06, 28 July 2010 (UTC)
 * File:Lesser_Poland_flag.svg
 * File:Slaskie_flag.svg
 * File:Opole_flaga.svg
 * File:POL Chełm flag.svg
 * File:POL Gdynia flag.svg
 * File:Pila flag.svg
 * File:Rudaslaska flag.svg
 * File:POL Tychy flag.svg
 * File:Zach-pomorskie flag.svg
 * File:Eindhoven flag outline.svg (despite the name)
 * File:Lodz_Flaga.PNG
 * File:Chin_National_Army_Flag.svg
 * File:Flag of the Federation of Bosnia and Herzegovina.svg

File:PakistancricketBoard-logo.svg
Showing a blank frame, although when alternate text is clicked the SVG shows fine. Also, when added to article, does not render. Could you tell me what i did wrong, so I'll be able to fix this problem myself next time?bigforrap (talk) 01:51, 23 August 2010 (UTC)
 * I don't think there is anything wrong with your file. There seems to be a general problem with thumbnailing right now (that has affected my uploads too), as a header on top of Commons pages says: "There is currently a problem with the creation of thumbnails, and some may not appear at all. Please sit tight, do not remove the images from articles, and hopefully the technical wizards will get it fixed soon." So the problem should simply disappear in some time. —Quibik (talk) 10:20, 23 August 2010 (UTC)
 * I'm not sure thats it. My local RSVG renderer cannot raster the file either. I will answer in more detail in ~8 hrs. User A1 (talk) 11:51, 23 August 2010 (UTC)
 * The thumbnail renders correctly now. It probably was caused by that general bug after all. —Quibik (talk)
 * Hmm, yes, I can't reproduce the problem, and it looks like it is fixed. Don't mind me :) User A1 (talk)

File:Division de La Habana en.svg
Bitstream Vera Sans is supposedly installed & available on WP's RSVG. I got inconsistent issues with full-sized font rendering at a fractional (18.63 pt) font size (vers 17:20), which were all fixed in fullsize rendering at 18pt font (vers 17:26). Unfortunately, they were not fixed in rendered thumbnails. Since I've been working as a wikigraphist, I'd like to understand why rather than applying a quick fix of rendering them into curves. If you fix this, please explain enough that I can fix File:Division de La Habana es.svg as well myself using Inkscape. Lesqual (talk) 19:13, 23 August 2010 (UTC)
 * For whatever reason, the use of the font size as 18.726px is being misread. Converting this to 18px works around the problem. You can post-scale with a matrix transformation (just grab the transform arrow handles and scale it to the desired size in inkscape). Note that this does not happen with my RSVG renderer on my local machine -- (2.26.0). I'd vote for an update to RSVG being installed on the WMF systems. User A1 (talk) 21:09, 23 August 2010 (UTC)


 * Rewriting my response as a timeline, because it's a lot less confusing:
 * 1) At 17:20 I uploaded the EN version.
 * 2) I discovered rendering was off in full size and in thumbnail.
 * 3) At 17:26 I figured out that changing the fontsize to 18pt fixed the full size render but not the thumbnail, and uploaded a new EN version.
 * 4) At 17:30 I uploaded the 18pt ES version.
 * 5) At 22:54 Gringer wanted to fix the thumbnails on the EN version and tried Arial, which didn't work.
 * 6) At 22:59 he gave up and reverted back to my old version, which had problems in full-screen.
 * I'm posting here to try and figure out how to fix the thumbnails. The latest EN version has no thumbnail problems, and changing to 18pt seems to have fixed things, which would let me close this issue... except a previous version (17:26) had 18pt font and still had thumbnail problems, and the ES version is all 18pt but still has thumbnail problems. Lesqual (talk) 21:57, 23 August 2010 (UTC)

File:Tensile specimen shoulders.svg
The image will only properly render above 799 px. It really needs to be smaller than that, because it blows the article format at that size. Thanks for any help! Wizard191 (talk) 14:22, 26 September 2010 (UTC)
 * I have removed your nice hatchings. The pattern feature in inkscape is not well respected by RSVG it would seem. Also there were some corrupt objects that were doing strange things in inkscape; not sure how that happened, or why. Let me know if this is reasonably fixed User A1 (talk) 15:55, 26 September 2010 (UTC)
 * As an artistic comment; i believe it is unclear to the reader that the first two are cylindrical samples, and the latter are plane samples. Could you add a gradient or some kind of top-view to show the 3D nature of these? User A1 (talk) 15:57, 26 September 2010 (UTC)
 * Actually the first three are cylindrical...lol. So I took your words to heart and added a 3rd dimension to the two flat ones. And then I converted my hatchings to colors, per your advice, and that fixed my problem. I'll try and keep that in mind in the future. Thanks for the help! Wizard191 (talk) 21:59, 26 September 2010 (UTC)

File:Poesías_jocosas_y_serias-soneto_I.svg
Using Inkscape I transcribed this old calligram for ca.wikisource.org The text is not rendering at all. What might be the problem and how can I solve it? --Micru (talk) 16:23, 2 October 2010 (UTC)


 * See the "font issues" section at the top of this page. Wizard191 (talk) 22:28, 3 October 2010 (UTC)

File:Dewan Rakyat 2008 Equal Area.svg
This file was created with Inkscape at first, then optimized for size and editing (inspired by this). After editing the source and uploading it, the file rendered correctly but only at 600px. Changing the rendering width seems to scale the font size too. I noticed that this issue is not new to Wikimedia. Any simple/quick fix? Thanks in advance. Hytar (talk) 19:40, 13 October 2010 (UTC)


 * Looks like it's rendering alright to me. Am I missing something? Wizard191 (talk) 21:15, 13 October 2010 (UTC)


 * Exactly my point. It looks fine at default size, but if it's scaled up or down, the text size will scale differently with the shapes. Try viewing it in large size...
 * My assumption is that I might be missing some parameters while creating the stripped down version of this file. Note that I uploaded several versions of the same file in attempt to fix it, but with no positive results. The original Inkscape version scaled the text just fine though. Anyway, I'm not expecting to display this file in an article at its default size. So, any good ideas? Hytar (talk) 19:03, 14 October 2010 (UTC)
 * Ahh, I see. You need to replace your font with "DejaVu Sans". You can download it for free. That will fix your scaling issues. Wizard191 (talk) 20:18, 14 October 2010 (UTC)
 * Er... no, it didn't. This (archived image at 300px) was done in DejaVu Sans, but that didn't help either. In fact, I've installed both Bitstream Vera Sans and DejaVu Sans, which have very little difference in appearance and rendering. Anyway I don't think the fonts itself cause this, but the rendering or my SVG source code.
 * BTW, sad to know that User A1 is not checking in here as often as he did. Apparently he was disappointed by some poll and consensus issues. Bad timing for a question here, but there's another place I can get help. =) Hytar (talk) 18:31, 15 October 2010 (UTC)
 * Hrm, well I don't know then. I know I had this issue in the past, and I had changed the font and that fixed my problem, but I see it isn't working for you. Unfortunately, User A1 isn't here, and he definitely knows more than myself. Your best bet is to ask someone over at the commons. Wizard191 (talk) 19:03, 15 October 2010 (UTC)
 * Get it. I'll ask at the illustration workshop. Thanks for helping anyway, however little you did. Hytar (talk) 19:27, 15 October 2010 (UTC)

Help needed with SVG
I've uploaded an SVG version of the logo for the 2010 Lisbon summit (File:2010 Lisbon summit.svg), but having trouble with some bits not appearing. --  [[ axg  ◉  talk   ]] 10:34, 23 November 2010 (UTC)