![]() | This is an
archive of past discussions for the period February 2009 to May 2010. 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 main page. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 | Archive 5 | → | Archive 10 |
The SVG looks OK, but in the rendered version the 'F', 'r' and 'e' of "Free" are on top of each other. Joriki ( talk) 23:15, 27 February 2009 (UTC)
viewBox="83 -119 34 34"
This seemed to restore the text to its proper form albeit in a smaller size. To simplify the process of maintaining object size I was a bit lazy and simply cut and pasted all the objects into a new document, which has the same overall effect. User A1 ( talk) 15:07, 28 February 2009 (UTC)
I created this on Inkscape (the first time I've ever used it) and it's not showing up on the Image page and also the countries which I haven't coloured are not appearing for some reason. I don't know what I've done wrong or need to do. Please help! Secrets ( talk) 22:51, 11 March 2009 (UTC)
<image xlink:href="BlankMap-World-v3.png" x="0" y="0" width="1425" height="625" id="image4679" />
Thanks for your suggestion! I'll try it out. As it is the first time I've used the program.. do I group the image at the end select "fit to selection"? Thanks. Secrets ( talk) 23:06, 12 March 2009 (UTC)
I'm experiencing severe problems with rendering of Cyrillic letters and fonts in wikipedia. I made this template in order to facilitate the creation of maps in the Russian Graphic Lab. Source is a French version of the same file. I used the exact same fonts in order to maintain "standard" convention and It looks great on my computer but when I upload it to commons, the whole thing becomes a total mess. There were also other complains from user about Cyrillic letters rendering. Could you explain what is causing it and how can it be fixed? Also there are issues with size of the file. I use Illustrator and for some reason it assigns font attributes to every single letter instead of a word. Yug has managed to fix the size, but the text is uneditable now. Thank you. -- Ahnode ( talk) 08:56, 8 May 2009 (UTC)
'Typical' problem: as the file history shows, having tried to fix this file either I get the black-box thing or no display at all. What do I need to do? The first change I made was switching the font to Sans; which gave the black-box problem. Then I tried the stroke to path change which removed any display on the image page at all. - Jarry1250 ( t, c) 16:53, 13 May 2009 (UTC)
I WAS having trouble with this image:
It would be good to know how I can fix it and avoid such trouble in the future but I just want it to look OK and I'm happy if someone else just fixes it. The main problem is that the text doesn't stay where it should be, but there's an issue with the background being partly transparent. I made the graphic in OpenOffice Draw on a Ubuntu machine, I'd be keen to know where to get alternative software for graphics like this. Nankai ( talk) 10:55, 15 May 2009 (UTC)
It is now almost fixed. I succeded in adding Inkspace to my Ubuntu machine as User A1 advised. I discarded the original created in OpenOffice Draw. I downloaded A1's version and edited it in Inkspace, teaching myself as I went. I was able to place the labels in their appropriate positions. I edited this version into Japanese and saved it under a new name, then uploaded the Japanese version. I linked that to the Jpanese Wikipedia article, and it renders well as a small-scale thumbnail.
The thumbnail version in the English article still has ugly text; the fonts are not rendering very well at small scale. This is the only remaining problem. I will try to work out what to do (by looking in Meta's SVG Fonts advice) but some more help would be great. Nankai ( talk) 09:26, 16 May 2009 (UTC)
Hello User A1, I was wondering if you could help me figure out this one too. I made a file in Illustrator, using a map previously done in Inkscape. (when I opened it everything was displaced as always, probably some intolerance btw Illustrator and Inkscape). Well anyways the only thing I did was adding the lines and text to creat an illustration. I saved the file and uploaded it to commons, which failed to render the file and showed only white space instead of anything. I tried several things, but at the end was forced to open svg file in inkscape and save it again. For some reason it worked, but the size significantly increased again. I find Inkscape really frustrating, but everytime wiki forces me to use it. Can you give me some hints on the matter? Why am I having these problems? Thanks. -- Ahnode ( talk) 16:17, 27 May 2009 (UTC)
Here are a few hints, sorry for the delay, I have been busy of late:
<i:pgf id="adobe_illustrator_pgf">
Hello. Please can anyone help me produce a subscript in <text>? I've tried baseline-shift="sub" in a <tspan> but it has no effect, so clearly I'm doing something wrong. Here's a minimal example of it doing nothing (when rendered in Firefox 3) but the font size change does work:
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg">
<g>
<text x="50" y="50">H<tspan baseline-shift="sub" font-size="12px">2</tspan>O</text>
</g>
</svg>
Thanks,
Certes (
talk)
21:11, 10 June 2009 (UTC)
I have lines with terminating arrow heads defined as <symbol>s in my <defs> section. When I use those symbols (<use xlink:href="#arrow" .../>), the arrowhead appears, but the line does not (both are marked up as <path>s). Am I going insane, or is this some bug in librsvg? The small arrowheads for the angle indication are also a bit... well, screwed. I've tested, and it appears as I intend in Firefox and Opera. Thanks — Zazou 20:21, 16 June 2009 (UTC)
I created a set of four diagrams: 1 2 3 4. To try to correct for text issues I did Path->Object to path. However:
All the images were drawn in illustrator, then loaded into Inkscape to save as svg. As you can tell, I am not very familiar with inkscape or svg. Thanks, Celefin ( talk) 18:14, 20 June 2009 (UTC)
-- FischX ( talk) 10:02, 28 June 2009 (UTC)
Having trouble with fonts here. The map (and others like it) are being created in ArcGIS using the Deja Vu font. I save the images, but have different problems. When I open the SVG in Inkscape, the font changes from Deja Vu to something else (Arial maybe?). I convert the text back to Deja Vu. I upload it, but get the misaligned text in PNG copies. When I look at the image itself, everything looks fine. On the other hand, when I open the svg in Illustrator, it has the correct font settings already. But when I upload the file, I still get the misaligned text, and when I look at the image itself, it definitely does not show the correct font (unless Deja Vu does have serifs). I have access to both Inkscape and Illustrator, but prefer Illustrator as it makes smaller file sizes. Can someone tell me what I'm doing wrong? Thanks! 25or6to4 ( talk) 04:55, 29 June 2009 (UTC)
If you want me to just magically fix it, let me know, but this will happen repeatedly until you find a good solution that works for you. If you know how to use regular expressions, you can probably cook up a quick and dirty solution for yourself. User A1 ( talk) 10:20, 29 June 2009 (UTC)
--- NJ_12_map.svg.orig 2009-07-04 13:11:50.000000000 +1000
+++ NJ_12_map.svg 2009-07-04 13:03:09.000000000 +1000
@@ -4489,11 +4489,11 @@
</g>
<g id="Labels">
<g id="fe_2007_34_place_-_Default">
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_1)" xml:space='preserve'>
- <text transform="matrix(13.91827 0 0 13.92009 68.3915 153.19812)"><tspan x="0 0.5518 0.96564 1.58641 2.24167 2.79347 3.41424 3.82809 4.44886 5.27655 ">Frenchtown</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="14" kerning="0" font-weight="400" fill="#000000" >
+ <text transform="matrix(1 0 0 1 68.3915 153.19812)">Frenchtown</text>
</g>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_1)" xml:space='preserve'>
- <text transform="matrix(13.91827 0 0 13.92009 1067.86723 286.63899)"><tspan x="0 0.5518 0.82769 1.44847 2.4486 2.72449 3.37975 4.00052 4.41437 5.00065 ">Flemington</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="14" kerning="0" font-weight="400" fill="#000000" >
+ <text transform="matrix(1 0 0 1 1067.86723 286.63899)">Flemington</text>
</g>
</g>
</g>
@@ -9318,20 +9318,20 @@
M1103.38281,675.84444L1103.38281,670.0844"/>
<path clip-path="url(#SVG_CP_6)" fill="none" stroke="#000000" stroke-width="0.95988" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" d="
M933.48393,675.84444L1127.37983,675.84444"/>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
- <text transform="matrix(11.99851 0 0 12.00008 929.88438 660.96434)"><tspan x="0 ">0</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="12" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
+ <text transform="matrix(1 0 0 1 929.88438 660.96434)">0</text>
</g>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
- <text transform="matrix(11.99851 0 0 12.00008 1026.83233 660.96434)"><tspan x="0 ">1</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="12" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
+ <text transform="matrix(1 0 0 1 1026.83233 660.96434)">1</text>
</g>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
- <text transform="matrix(11.99851 0 0 12.00008 1123.78027 660.96434)"><tspan x="0 ">2</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="12" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
+ <text transform="matrix(1 0 0 1 1123.78027 660.96434)">2</text>a
</g>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
- <text transform="matrix(11.99851 0 0 12.00008 972.59907 660.96434)"><tspan x="0 0.60008 0.92012 ">0.5</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="12" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
+ <text transform="matrix(1 0 0 1 972.59907 660.96434)">0.5</text>
</g>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
- <text transform="matrix(11.99851 0 0 12.00008 1135.05887 660.96434)"><tspan x="0 0.84011 1.12015 1.40018 2.00026 ">Miles</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="12" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
+ <text transform="matrix(1 0 0 1 1135.05887 660.96434)">Miles</text>
</g>
</g>
</svg>
Note how I convert the transformation matrix (the notation is in format, M 2x2, b 2x1) to the identity, and then bump up the glyph size. These should produce near-identical images, but they don't. This seems to be another aliasing bug in RSVG :( . I also removed the tspans for good measure. User A1 ( talk) 03:18, 4 July 2009 (UTC)
Hope that's fine, but if it helps to look at a file, I can upload one. I would like some help in converting a string of coordinates in a path from absolute to relative.
I have code like this:
<path d="M -120.80299,326.11593 L -116.50534,308.21523 L -111.84056,290.3365 L -110.78977,286.10698 [...]
I want code like this:
<path d="M 29688,5628 l 964,-27 994,-43 928,-43 616,-55 191,3753 1,106 -1157,63 -129,13 [...]
The files I'm working with are close to a megabyte in size, when they could be under a quarter of a megabyte, at least. I know they are so big only because the paths use a string of absolute coordinates rather than relative. Any help would be greatly appreciated. — Athelwulf [T]/ [C] 20:38, 9 August 2009 (UTC)
*Crickets...* — Athelwulf [T]/ [C] 20:51, 14 August 2009 (UTC)
To run scour on the command-line, first download and install Python, then download scour. The basics are: $ python scour.py -i input.svg -o output.svg
Note that the $ is not part of the command. To open a command line under windows XP start->run then type "cmd" (no quotes). The python executable must be in your PATH environment variable User A1 ( talk) 07:43, 16 August 2009 (UTC)
Traceback (most recent call last): File "scour.py", line 2324, in (module) options, (input, output) = parse_args() File "scour.py", line 2291, in parse_args infile = maybe_gziped_file(options.infilename) File "scour.py", line 2278, in maybe_gziped_file return file(filename, mode) NameError: global name 'file' is not defined
M 101.03996,270.06644 L 101.03996,270.3065 L 101.27996,270.54656 L 101.27996,270.78661 [...]
M101.04,270.07v0.24l0.24,0.24v0.24h-0.24v0.24v0.24l-0.24,0.24h0.24v0.24v0.24v0.24h-0.24 [...]
I cant see most .svg files on Wikipedia since they seem to either specify the foreground color as black and not specify the background or they specify the background as my font color and don't specify the foreground. I assume everyone who has a black background has this problem. Can we have a rule or standard that states that both or neither should be specified? -- MLegion ( talk) 20:33, 30 August 2009 (UTC)
Hi,
None of the circles are rendered in this SVG file. I've converted them all to paths, but this does not solve the problem. Any ideas?
Hesperian 14:16, 17 September 2009 (UTC)
--- Banksia_menziesii_bract_pattern.svg 2009-09-17 10:01:25.000000000 -0500
+++ Desktop/Banksia_menziesii_bract_pattern.svg 2009-09-17 10:08:36.000000000 -0500
@@ -8,16 +8,6 @@
width="720"
height="432"
id="svg2">
- <defs
- id="defs4">
- <filter
- id="filter3292">
- <feGaussianBlur
- id="feGaussianBlur3294"
- stdDeviation="0.22116402"
- inkscape:collect="always" />
- </filter>
- </defs>
<g
transform="translate(-0.4999985,-0.5000022)"
id="layer3">
Ok, I know this is a stupid question, but here it is: I'm trying to fix the colors on an obscure Balkans flag File:Flag of Herzeg-Bosnia.svg. I downloaded the thing, and it materialized as a PNG file, so I fixed it up with Photoshop (replace color). I naturally want my new image with the proper colors (which is still PNG) to replace the old one. So when I'm done, I use Inkscape to convert the PNG into an SVG. Then I go to commons, upload the image under the exact same name ("File:Flag of Herzeg-Bosnia.SVG"), it replaces the old one - but no thumbnail gets generated.
For the record, I realize I'm probably missing something obvious. I edit text, and I mostly don't get into images... -- DIREKTOR ( TALK) 09:32, 10 October 2009 (UTC)
Is it possible to link parts of an SVG to Wikipedia articles? For example, I've created this SVG [2], and it would be really awesome if the text could actually link to the relevant wiki articles. Is this possible somehow? -- Robin ( talk) 14:57, 17 October 2009 (UTC)
The lines in this image are not showing up. I think the problem is that the wikipedia rendering function does not like the "shape-rendering:crispEdges" style used for the lines. However, this style allows the lines to be placed very precisely with very thin widths, but still visible at lower resolutions. So I would appreciate it if someone could let me know if I have a problem in my file, or if I there is another way to achieve the desired effect, or if it is something else. J kasd 06:07, 21 October 2009 (UTC) Category:Wikipedia image help
I just want to clarify that the lines only misbehave when viewed through the wikipedia rendering function. For example, the image behaves as desired here. Try zooming in and out to see how the lines stay visible at all resolutions. J kasd 06:17, 21 October 2009 (UTC)
I will look at this in about 12 hrs, but neither image shows anything byt a black bar for me... User A1 ( talk)
I cannot for the life of me get safari to view ANY svg on wikipedia properly. They show up as enormous files that can't be scrolled or zoomed so that you can only see a tiny portion, usually the extreme upper left corner. I'm using the latest safari, but my OS is 10.4.11. Any help would be appreciated. Thanks. Armandtanzarian ( talk) 20:50, 25 October 2009 (UTC)
I am trying to upload this coat of arms I created, but firstly, the picture doesn't show unless I click to the full picture view, and secondly, a figure of an animal-head that's supposed to be on the front doesn't show up at all. I am pretty new to creating imagery in this way, so there's probably just something basic I did wrong. I have also head similar problems earlier. Can someone help? - GabaG ( talk) 18:04, 31 October 2009 (UTC)
I have uploaded a diagram in SVG here. It generally renders fine, but at the 2000px setting, there are text problems. (The 'k' and 'o' in "pseudoknot" at the top right corner overlap, and the distance between the 'r' and 'o' in "alphaproteo-" at top left is also off.) I had earlier had problems like this, and thought I had resolved them by converting fonts to paths, and re-uploading. However, while most of the PNGs are correct, the 2000px png is still wrong. I wonder if the 2000px simply didn't get re-rendered. If it helps, I'm using Adobe Illustrator CS to generate the SVGs. Zashaw ( talk) 05:18, 7 December 2009 (UTC)
The image has a random black rectangle in the lower right hand corner that I'm trying to get rid of. I've tried converting the arrows to paths and saving as a plain SVG but neither have work. Any help is appreciated. Wizard191 ( talk) 19:03, 17 December 2009 (UTC)
There are no black boxes in the original SVG ...Boolean_functions_like_1110_1000.svg,
but in all PNGsations like ...500px-Boolean_functions_like_1110_1000.svg.png.
I've heard about problems with text. But there's the same problem here, where all text is turned into paths. What can I do? Boolean Algebra ( talk) 00:51, 22 December 2009 (UTC)
<rect style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" id="rect16723" width="0" height="137.38075" x="141.42136" y="668.50421" /> <rect style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" id="rect17455" width="0" height="25.714285" x="127.14286" y="110.93361" />
Also you have some large invisible layers in that image -- do you need them? I assume you are keeping them for other files? User A1 ( talk) 10:09, 22 December 2009 (UTC)
I made this file in Corel Draw 12 using older files such as File:Maksutov-Cassegrain-Telescope.svg for a template. The Corel SVG export highlighted errors (sorry, don't understand any of them) and the uploaded file was pretty messed up. I tried fixing errors by converting all text and line elements to curves, saving a new SVG, and uploading that. The new image looks much better but the image page and all the thumbs are still showing the PNG of the previous messed up SVG. Is there a way to purge the generated PNG? (Also is there a tutorial somewhere on exporting SVGs out of Corel Draw 12?). MrFloatingIP ( talk) 02:43, 6 January 2010 (UTC)
Hello, I am trying to translate http://upload.wikimedia.org/wikipedia/commons/4/47/Austria_Hungary_ethnic.svg into Spanish for use in the Spanish wikipedia but I have a weird issue with this file. I use inkscape to try and edit it but text is identified as an object (I can select it) but not as text (I cannot use the Text->Text and font option to change the texts in the map). Besides, I have tried editing the xml file in vi but I cannot find the text in the map at all... Funny. Any idea on what I may be doing wrong and how to get the text identified as text so that I can translate it? Thank you!-- Rowanwindwhistler ( talk) 20:21, 10 February 2010 (UTC)
Present Librsvg version (as of 2010-02-16) renders some Wikipedian thumbnails erroneously:
The file does not rasterize on Wikipedia. I have not yet been able to determine why.
The original version renders fine with Inkscape; with Firefox 3.6 there is a minor image issue; with Adobe-SVG (IE) it renders with a complaint; but it does not rasterize on Wikipedia.
I have used "Scour" on the file. Now there are no issues on Firefox or Adobe-SVG (IE). I have downloaded and installed RSVG. RSVG rasterizes it, but with errors. Wikipedia still does not rasterize the file at all. I am unable to duplicate complete non-operation of RSVG.
For testing it would be nice if there was a quick way to have wikipedia rasterize a file without having to clutter up the file version log with minor blind changes in the hope of resolving the problem(s). Preferably this would also provide debugging output so problems can be readily identified.
Given that it is unlikely such an interface would exist in the near future, the other reasonable method of testing is to duplicate the problem on a local machine. What version of RSVG is wikipedia running at this point? Makyen ( talk) 15:05, 17 February 2010 (UTC)
I recently created my first SVG using Inkscape and proceeded to upload it to the Commons. Everything worked out fine except that there is a small black mark underneath the raised arm in the image, and I do not know how to correct it. I'm not sure if this will help, but when using Google Chrome, the image at its file page appears with the black mark, but when I go directly to the online file, it doesn't. In Firefox, however, the black mark shows in both images. Thanks for your time, ~ Super Hamster Talk Contribs 00:41, 9 March 2010 (UTC)
For Template:Music ( Template:Music/Doc) I'm trying to create an svg version of File:Three quarter flat.png since I assume the "scalable" aspect of "svg" will allow it display better. However, when I finally managed to convert it to svg with OpenOffice it was surrounded by whitespace. The only solution I've found is to stretch the image before exporting, and that is not satisfactory either. Hyacinth ( talk) 07:39, 12 March 2010 (UTC)
- image x="-1" y="-1" width="21593" height="28308" xlink:href="data:image/png;base64,iVBORw0KGgoAAAA....
Given that we have Helvetica available in the SVG fonts lists, why then are we using Random Sans to substitute for Arial in SVGs originated on OpenOffice, rather than Helvetica, which Arial was purposely created to be drop-in interchangeable with? This seems to completely break up detailed formatting (eg in diagrams), in a way that is completely unnecessary.
Come to think of it, why is the formatting being broken up just so badly? I could understand a certain amount of mis-kerning as a result of the metrics not quite matching, or a bit of overflow, but instead given an unknown font, our SVG interpreter seems to just dump the text at the left margin.
This seems a completely unnecessary fail by the SVG interpreting software. Can it not be configured to fall through a bit more gracefully? Jheald ( talk) 16:53, 14 March 2010 (UTC)
There are two problems here (1) should wiki allow embedded fonts? Probably (2) Is it technically supported, maybe not. Pragmatically, just use something like DejaVu sans, and you will not have any problems. No embedding required as the target machine has the font. Neater SVGs for all. I have not studied the Arial or helvetica licences (though I ran a quick search, but turned up nothing) to see whether font embedding is allowed, and how redistribution is to be done, nor am I in charge of any wiki servers :). Feel free to raise this somewhere more likely to get a response, such as the librsvg bug page. User A1 ( talk) 22:23, 14 March 2010 (UTC)
Rsvg seems to have a problem here--"Monte Solaro" (above the red triangle) renders fine Firefox, but in Wikipedia's preview the letters are on top of each other ("Mone Soho"). Rsvg bug or SVG problem, or both? Morn ( talk) 11:12, 2 April 2010 (UTC)
Rsvg shows a black horizontal line at the top of the image (left corner) that shouldn't be there (and isn't in Inkscape or Firefox). Morn ( talk) 20:07, 2 April 2010 (UTC)
<rect
width="75"
height="0"
x="0"
y="0"
transform="translate(-433.3571,21.6479)"
style="fill:blue;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="rect1937" />
I can't figure out how to convert images such as this one and this one to SVG format using Inkscape and removing the background. Please help! — Untitledmind72 ( let's talk + contribs) 19:31, 30 April 2010 (UTC)
![]() | This is an
archive of past discussions for the period February 2009 to May 2010. 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 main page. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 | Archive 5 | → | Archive 10 |
The SVG looks OK, but in the rendered version the 'F', 'r' and 'e' of "Free" are on top of each other. Joriki ( talk) 23:15, 27 February 2009 (UTC)
viewBox="83 -119 34 34"
This seemed to restore the text to its proper form albeit in a smaller size. To simplify the process of maintaining object size I was a bit lazy and simply cut and pasted all the objects into a new document, which has the same overall effect. User A1 ( talk) 15:07, 28 February 2009 (UTC)
I created this on Inkscape (the first time I've ever used it) and it's not showing up on the Image page and also the countries which I haven't coloured are not appearing for some reason. I don't know what I've done wrong or need to do. Please help! Secrets ( talk) 22:51, 11 March 2009 (UTC)
<image xlink:href="BlankMap-World-v3.png" x="0" y="0" width="1425" height="625" id="image4679" />
Thanks for your suggestion! I'll try it out. As it is the first time I've used the program.. do I group the image at the end select "fit to selection"? Thanks. Secrets ( talk) 23:06, 12 March 2009 (UTC)
I'm experiencing severe problems with rendering of Cyrillic letters and fonts in wikipedia. I made this template in order to facilitate the creation of maps in the Russian Graphic Lab. Source is a French version of the same file. I used the exact same fonts in order to maintain "standard" convention and It looks great on my computer but when I upload it to commons, the whole thing becomes a total mess. There were also other complains from user about Cyrillic letters rendering. Could you explain what is causing it and how can it be fixed? Also there are issues with size of the file. I use Illustrator and for some reason it assigns font attributes to every single letter instead of a word. Yug has managed to fix the size, but the text is uneditable now. Thank you. -- Ahnode ( talk) 08:56, 8 May 2009 (UTC)
'Typical' problem: as the file history shows, having tried to fix this file either I get the black-box thing or no display at all. What do I need to do? The first change I made was switching the font to Sans; which gave the black-box problem. Then I tried the stroke to path change which removed any display on the image page at all. - Jarry1250 ( t, c) 16:53, 13 May 2009 (UTC)
I WAS having trouble with this image:
It would be good to know how I can fix it and avoid such trouble in the future but I just want it to look OK and I'm happy if someone else just fixes it. The main problem is that the text doesn't stay where it should be, but there's an issue with the background being partly transparent. I made the graphic in OpenOffice Draw on a Ubuntu machine, I'd be keen to know where to get alternative software for graphics like this. Nankai ( talk) 10:55, 15 May 2009 (UTC)
It is now almost fixed. I succeded in adding Inkspace to my Ubuntu machine as User A1 advised. I discarded the original created in OpenOffice Draw. I downloaded A1's version and edited it in Inkspace, teaching myself as I went. I was able to place the labels in their appropriate positions. I edited this version into Japanese and saved it under a new name, then uploaded the Japanese version. I linked that to the Jpanese Wikipedia article, and it renders well as a small-scale thumbnail.
The thumbnail version in the English article still has ugly text; the fonts are not rendering very well at small scale. This is the only remaining problem. I will try to work out what to do (by looking in Meta's SVG Fonts advice) but some more help would be great. Nankai ( talk) 09:26, 16 May 2009 (UTC)
Hello User A1, I was wondering if you could help me figure out this one too. I made a file in Illustrator, using a map previously done in Inkscape. (when I opened it everything was displaced as always, probably some intolerance btw Illustrator and Inkscape). Well anyways the only thing I did was adding the lines and text to creat an illustration. I saved the file and uploaded it to commons, which failed to render the file and showed only white space instead of anything. I tried several things, but at the end was forced to open svg file in inkscape and save it again. For some reason it worked, but the size significantly increased again. I find Inkscape really frustrating, but everytime wiki forces me to use it. Can you give me some hints on the matter? Why am I having these problems? Thanks. -- Ahnode ( talk) 16:17, 27 May 2009 (UTC)
Here are a few hints, sorry for the delay, I have been busy of late:
<i:pgf id="adobe_illustrator_pgf">
Hello. Please can anyone help me produce a subscript in <text>? I've tried baseline-shift="sub" in a <tspan> but it has no effect, so clearly I'm doing something wrong. Here's a minimal example of it doing nothing (when rendered in Firefox 3) but the font size change does work:
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg">
<g>
<text x="50" y="50">H<tspan baseline-shift="sub" font-size="12px">2</tspan>O</text>
</g>
</svg>
Thanks,
Certes (
talk)
21:11, 10 June 2009 (UTC)
I have lines with terminating arrow heads defined as <symbol>s in my <defs> section. When I use those symbols (<use xlink:href="#arrow" .../>), the arrowhead appears, but the line does not (both are marked up as <path>s). Am I going insane, or is this some bug in librsvg? The small arrowheads for the angle indication are also a bit... well, screwed. I've tested, and it appears as I intend in Firefox and Opera. Thanks — Zazou 20:21, 16 June 2009 (UTC)
I created a set of four diagrams: 1 2 3 4. To try to correct for text issues I did Path->Object to path. However:
All the images were drawn in illustrator, then loaded into Inkscape to save as svg. As you can tell, I am not very familiar with inkscape or svg. Thanks, Celefin ( talk) 18:14, 20 June 2009 (UTC)
-- FischX ( talk) 10:02, 28 June 2009 (UTC)
Having trouble with fonts here. The map (and others like it) are being created in ArcGIS using the Deja Vu font. I save the images, but have different problems. When I open the SVG in Inkscape, the font changes from Deja Vu to something else (Arial maybe?). I convert the text back to Deja Vu. I upload it, but get the misaligned text in PNG copies. When I look at the image itself, everything looks fine. On the other hand, when I open the svg in Illustrator, it has the correct font settings already. But when I upload the file, I still get the misaligned text, and when I look at the image itself, it definitely does not show the correct font (unless Deja Vu does have serifs). I have access to both Inkscape and Illustrator, but prefer Illustrator as it makes smaller file sizes. Can someone tell me what I'm doing wrong? Thanks! 25or6to4 ( talk) 04:55, 29 June 2009 (UTC)
If you want me to just magically fix it, let me know, but this will happen repeatedly until you find a good solution that works for you. If you know how to use regular expressions, you can probably cook up a quick and dirty solution for yourself. User A1 ( talk) 10:20, 29 June 2009 (UTC)
--- NJ_12_map.svg.orig 2009-07-04 13:11:50.000000000 +1000
+++ NJ_12_map.svg 2009-07-04 13:03:09.000000000 +1000
@@ -4489,11 +4489,11 @@
</g>
<g id="Labels">
<g id="fe_2007_34_place_-_Default">
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_1)" xml:space='preserve'>
- <text transform="matrix(13.91827 0 0 13.92009 68.3915 153.19812)"><tspan x="0 0.5518 0.96564 1.58641 2.24167 2.79347 3.41424 3.82809 4.44886 5.27655 ">Frenchtown</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="14" kerning="0" font-weight="400" fill="#000000" >
+ <text transform="matrix(1 0 0 1 68.3915 153.19812)">Frenchtown</text>
</g>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_1)" xml:space='preserve'>
- <text transform="matrix(13.91827 0 0 13.92009 1067.86723 286.63899)"><tspan x="0 0.5518 0.82769 1.44847 2.4486 2.72449 3.37975 4.00052 4.41437 5.00065 ">Flemington</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="14" kerning="0" font-weight="400" fill="#000000" >
+ <text transform="matrix(1 0 0 1 1067.86723 286.63899)">Flemington</text>
</g>
</g>
</g>
@@ -9318,20 +9318,20 @@
M1103.38281,675.84444L1103.38281,670.0844"/>
<path clip-path="url(#SVG_CP_6)" fill="none" stroke="#000000" stroke-width="0.95988" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" d="
M933.48393,675.84444L1127.37983,675.84444"/>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
- <text transform="matrix(11.99851 0 0 12.00008 929.88438 660.96434)"><tspan x="0 ">0</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="12" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
+ <text transform="matrix(1 0 0 1 929.88438 660.96434)">0</text>
</g>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
- <text transform="matrix(11.99851 0 0 12.00008 1026.83233 660.96434)"><tspan x="0 ">1</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="12" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
+ <text transform="matrix(1 0 0 1 1026.83233 660.96434)">1</text>
</g>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
- <text transform="matrix(11.99851 0 0 12.00008 1123.78027 660.96434)"><tspan x="0 ">2</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="12" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
+ <text transform="matrix(1 0 0 1 1123.78027 660.96434)">2</text>a
</g>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
- <text transform="matrix(11.99851 0 0 12.00008 972.59907 660.96434)"><tspan x="0 0.60008 0.92012 ">0.5</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="12" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
+ <text transform="matrix(1 0 0 1 972.59907 660.96434)">0.5</text>
</g>
- <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
- <text transform="matrix(11.99851 0 0 12.00008 1135.05887 660.96434)"><tspan x="0 0.84011 1.12015 1.40018 2.00026 ">Miles</tspan></text>
+ <g font-family="'DejaVu Sans'" font-size="12" kerning="0" font-weight="400" fill="#000000" clip-path="url(#SVG_CP_6)" xml:space='preserve'>
+ <text transform="matrix(1 0 0 1 1135.05887 660.96434)">Miles</text>
</g>
</g>
</svg>
Note how I convert the transformation matrix (the notation is in format, M 2x2, b 2x1) to the identity, and then bump up the glyph size. These should produce near-identical images, but they don't. This seems to be another aliasing bug in RSVG :( . I also removed the tspans for good measure. User A1 ( talk) 03:18, 4 July 2009 (UTC)
Hope that's fine, but if it helps to look at a file, I can upload one. I would like some help in converting a string of coordinates in a path from absolute to relative.
I have code like this:
<path d="M -120.80299,326.11593 L -116.50534,308.21523 L -111.84056,290.3365 L -110.78977,286.10698 [...]
I want code like this:
<path d="M 29688,5628 l 964,-27 994,-43 928,-43 616,-55 191,3753 1,106 -1157,63 -129,13 [...]
The files I'm working with are close to a megabyte in size, when they could be under a quarter of a megabyte, at least. I know they are so big only because the paths use a string of absolute coordinates rather than relative. Any help would be greatly appreciated. — Athelwulf [T]/ [C] 20:38, 9 August 2009 (UTC)
*Crickets...* — Athelwulf [T]/ [C] 20:51, 14 August 2009 (UTC)
To run scour on the command-line, first download and install Python, then download scour. The basics are: $ python scour.py -i input.svg -o output.svg
Note that the $ is not part of the command. To open a command line under windows XP start->run then type "cmd" (no quotes). The python executable must be in your PATH environment variable User A1 ( talk) 07:43, 16 August 2009 (UTC)
Traceback (most recent call last): File "scour.py", line 2324, in (module) options, (input, output) = parse_args() File "scour.py", line 2291, in parse_args infile = maybe_gziped_file(options.infilename) File "scour.py", line 2278, in maybe_gziped_file return file(filename, mode) NameError: global name 'file' is not defined
M 101.03996,270.06644 L 101.03996,270.3065 L 101.27996,270.54656 L 101.27996,270.78661 [...]
M101.04,270.07v0.24l0.24,0.24v0.24h-0.24v0.24v0.24l-0.24,0.24h0.24v0.24v0.24v0.24h-0.24 [...]
I cant see most .svg files on Wikipedia since they seem to either specify the foreground color as black and not specify the background or they specify the background as my font color and don't specify the foreground. I assume everyone who has a black background has this problem. Can we have a rule or standard that states that both or neither should be specified? -- MLegion ( talk) 20:33, 30 August 2009 (UTC)
Hi,
None of the circles are rendered in this SVG file. I've converted them all to paths, but this does not solve the problem. Any ideas?
Hesperian 14:16, 17 September 2009 (UTC)
--- Banksia_menziesii_bract_pattern.svg 2009-09-17 10:01:25.000000000 -0500
+++ Desktop/Banksia_menziesii_bract_pattern.svg 2009-09-17 10:08:36.000000000 -0500
@@ -8,16 +8,6 @@
width="720"
height="432"
id="svg2">
- <defs
- id="defs4">
- <filter
- id="filter3292">
- <feGaussianBlur
- id="feGaussianBlur3294"
- stdDeviation="0.22116402"
- inkscape:collect="always" />
- </filter>
- </defs>
<g
transform="translate(-0.4999985,-0.5000022)"
id="layer3">
Ok, I know this is a stupid question, but here it is: I'm trying to fix the colors on an obscure Balkans flag File:Flag of Herzeg-Bosnia.svg. I downloaded the thing, and it materialized as a PNG file, so I fixed it up with Photoshop (replace color). I naturally want my new image with the proper colors (which is still PNG) to replace the old one. So when I'm done, I use Inkscape to convert the PNG into an SVG. Then I go to commons, upload the image under the exact same name ("File:Flag of Herzeg-Bosnia.SVG"), it replaces the old one - but no thumbnail gets generated.
For the record, I realize I'm probably missing something obvious. I edit text, and I mostly don't get into images... -- DIREKTOR ( TALK) 09:32, 10 October 2009 (UTC)
Is it possible to link parts of an SVG to Wikipedia articles? For example, I've created this SVG [2], and it would be really awesome if the text could actually link to the relevant wiki articles. Is this possible somehow? -- Robin ( talk) 14:57, 17 October 2009 (UTC)
The lines in this image are not showing up. I think the problem is that the wikipedia rendering function does not like the "shape-rendering:crispEdges" style used for the lines. However, this style allows the lines to be placed very precisely with very thin widths, but still visible at lower resolutions. So I would appreciate it if someone could let me know if I have a problem in my file, or if I there is another way to achieve the desired effect, or if it is something else. J kasd 06:07, 21 October 2009 (UTC) Category:Wikipedia image help
I just want to clarify that the lines only misbehave when viewed through the wikipedia rendering function. For example, the image behaves as desired here. Try zooming in and out to see how the lines stay visible at all resolutions. J kasd 06:17, 21 October 2009 (UTC)
I will look at this in about 12 hrs, but neither image shows anything byt a black bar for me... User A1 ( talk)
I cannot for the life of me get safari to view ANY svg on wikipedia properly. They show up as enormous files that can't be scrolled or zoomed so that you can only see a tiny portion, usually the extreme upper left corner. I'm using the latest safari, but my OS is 10.4.11. Any help would be appreciated. Thanks. Armandtanzarian ( talk) 20:50, 25 October 2009 (UTC)
I am trying to upload this coat of arms I created, but firstly, the picture doesn't show unless I click to the full picture view, and secondly, a figure of an animal-head that's supposed to be on the front doesn't show up at all. I am pretty new to creating imagery in this way, so there's probably just something basic I did wrong. I have also head similar problems earlier. Can someone help? - GabaG ( talk) 18:04, 31 October 2009 (UTC)
I have uploaded a diagram in SVG here. It generally renders fine, but at the 2000px setting, there are text problems. (The 'k' and 'o' in "pseudoknot" at the top right corner overlap, and the distance between the 'r' and 'o' in "alphaproteo-" at top left is also off.) I had earlier had problems like this, and thought I had resolved them by converting fonts to paths, and re-uploading. However, while most of the PNGs are correct, the 2000px png is still wrong. I wonder if the 2000px simply didn't get re-rendered. If it helps, I'm using Adobe Illustrator CS to generate the SVGs. Zashaw ( talk) 05:18, 7 December 2009 (UTC)
The image has a random black rectangle in the lower right hand corner that I'm trying to get rid of. I've tried converting the arrows to paths and saving as a plain SVG but neither have work. Any help is appreciated. Wizard191 ( talk) 19:03, 17 December 2009 (UTC)
There are no black boxes in the original SVG ...Boolean_functions_like_1110_1000.svg,
but in all PNGsations like ...500px-Boolean_functions_like_1110_1000.svg.png.
I've heard about problems with text. But there's the same problem here, where all text is turned into paths. What can I do? Boolean Algebra ( talk) 00:51, 22 December 2009 (UTC)
<rect style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" id="rect16723" width="0" height="137.38075" x="141.42136" y="668.50421" /> <rect style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" id="rect17455" width="0" height="25.714285" x="127.14286" y="110.93361" />
Also you have some large invisible layers in that image -- do you need them? I assume you are keeping them for other files? User A1 ( talk) 10:09, 22 December 2009 (UTC)
I made this file in Corel Draw 12 using older files such as File:Maksutov-Cassegrain-Telescope.svg for a template. The Corel SVG export highlighted errors (sorry, don't understand any of them) and the uploaded file was pretty messed up. I tried fixing errors by converting all text and line elements to curves, saving a new SVG, and uploading that. The new image looks much better but the image page and all the thumbs are still showing the PNG of the previous messed up SVG. Is there a way to purge the generated PNG? (Also is there a tutorial somewhere on exporting SVGs out of Corel Draw 12?). MrFloatingIP ( talk) 02:43, 6 January 2010 (UTC)
Hello, I am trying to translate http://upload.wikimedia.org/wikipedia/commons/4/47/Austria_Hungary_ethnic.svg into Spanish for use in the Spanish wikipedia but I have a weird issue with this file. I use inkscape to try and edit it but text is identified as an object (I can select it) but not as text (I cannot use the Text->Text and font option to change the texts in the map). Besides, I have tried editing the xml file in vi but I cannot find the text in the map at all... Funny. Any idea on what I may be doing wrong and how to get the text identified as text so that I can translate it? Thank you!-- Rowanwindwhistler ( talk) 20:21, 10 February 2010 (UTC)
Present Librsvg version (as of 2010-02-16) renders some Wikipedian thumbnails erroneously:
The file does not rasterize on Wikipedia. I have not yet been able to determine why.
The original version renders fine with Inkscape; with Firefox 3.6 there is a minor image issue; with Adobe-SVG (IE) it renders with a complaint; but it does not rasterize on Wikipedia.
I have used "Scour" on the file. Now there are no issues on Firefox or Adobe-SVG (IE). I have downloaded and installed RSVG. RSVG rasterizes it, but with errors. Wikipedia still does not rasterize the file at all. I am unable to duplicate complete non-operation of RSVG.
For testing it would be nice if there was a quick way to have wikipedia rasterize a file without having to clutter up the file version log with minor blind changes in the hope of resolving the problem(s). Preferably this would also provide debugging output so problems can be readily identified.
Given that it is unlikely such an interface would exist in the near future, the other reasonable method of testing is to duplicate the problem on a local machine. What version of RSVG is wikipedia running at this point? Makyen ( talk) 15:05, 17 February 2010 (UTC)
I recently created my first SVG using Inkscape and proceeded to upload it to the Commons. Everything worked out fine except that there is a small black mark underneath the raised arm in the image, and I do not know how to correct it. I'm not sure if this will help, but when using Google Chrome, the image at its file page appears with the black mark, but when I go directly to the online file, it doesn't. In Firefox, however, the black mark shows in both images. Thanks for your time, ~ Super Hamster Talk Contribs 00:41, 9 March 2010 (UTC)
For Template:Music ( Template:Music/Doc) I'm trying to create an svg version of File:Three quarter flat.png since I assume the "scalable" aspect of "svg" will allow it display better. However, when I finally managed to convert it to svg with OpenOffice it was surrounded by whitespace. The only solution I've found is to stretch the image before exporting, and that is not satisfactory either. Hyacinth ( talk) 07:39, 12 March 2010 (UTC)
- image x="-1" y="-1" width="21593" height="28308" xlink:href="data:image/png;base64,iVBORw0KGgoAAAA....
Given that we have Helvetica available in the SVG fonts lists, why then are we using Random Sans to substitute for Arial in SVGs originated on OpenOffice, rather than Helvetica, which Arial was purposely created to be drop-in interchangeable with? This seems to completely break up detailed formatting (eg in diagrams), in a way that is completely unnecessary.
Come to think of it, why is the formatting being broken up just so badly? I could understand a certain amount of mis-kerning as a result of the metrics not quite matching, or a bit of overflow, but instead given an unknown font, our SVG interpreter seems to just dump the text at the left margin.
This seems a completely unnecessary fail by the SVG interpreting software. Can it not be configured to fall through a bit more gracefully? Jheald ( talk) 16:53, 14 March 2010 (UTC)
There are two problems here (1) should wiki allow embedded fonts? Probably (2) Is it technically supported, maybe not. Pragmatically, just use something like DejaVu sans, and you will not have any problems. No embedding required as the target machine has the font. Neater SVGs for all. I have not studied the Arial or helvetica licences (though I ran a quick search, but turned up nothing) to see whether font embedding is allowed, and how redistribution is to be done, nor am I in charge of any wiki servers :). Feel free to raise this somewhere more likely to get a response, such as the librsvg bug page. User A1 ( talk) 22:23, 14 March 2010 (UTC)
Rsvg seems to have a problem here--"Monte Solaro" (above the red triangle) renders fine Firefox, but in Wikipedia's preview the letters are on top of each other ("Mone Soho"). Rsvg bug or SVG problem, or both? Morn ( talk) 11:12, 2 April 2010 (UTC)
Rsvg shows a black horizontal line at the top of the image (left corner) that shouldn't be there (and isn't in Inkscape or Firefox). Morn ( talk) 20:07, 2 April 2010 (UTC)
<rect
width="75"
height="0"
x="0"
y="0"
transform="translate(-433.3571,21.6479)"
style="fill:blue;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="rect1937" />
I can't figure out how to convert images such as this one and this one to SVG format using Inkscape and removing the background. Please help! — Untitledmind72 ( let's talk + contribs) 19:31, 30 April 2010 (UTC)