<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Wikipedia%3ASVG_help</id>
	<title>Wikipedia:SVG help - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Wikipedia%3ASVG_help"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Wikipedia:SVG_help&amp;action=history"/>
	<updated>2026-05-15T10:42:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Wikipedia:SVG_help&amp;diff=1699&amp;oldid=prev</id>
		<title>Tachyony: Imported page</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Wikipedia:SVG_help&amp;diff=1699&amp;oldid=prev"/>
		<updated>2021-12-06T12:28:11Z</updated>

		<summary type="html">&lt;p&gt;Imported page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{see also|Wikipedia:Graphic Lab/Resources/SVG|Wikipedia:Graphic Lab/Illustration workshop}}&lt;br /&gt;
[[Category:Wikipedia image help]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot; style=&amp;quot;position:relative;&amp;quot;&amp;gt;&lt;br /&gt;
{| style=&amp;quot;float:center; width:300px; border:2px solid LightSeaGreen; vertical-align:center; background-color:MediumAquamarine; padding:0em; text-align:center; margin-bottom:5px;&amp;quot;&lt;br /&gt;
|[[File:Ark-icon.svg|35px|left]]&lt;br /&gt;
|&amp;lt;span style=&amp;quot;font-size:140%&amp;quot;&amp;gt;[[Special:NewSection/{{FULLPAGENAME}}|Create a new request]]&amp;lt;/span&amp;gt;&lt;br /&gt;
|[[File:Ark-icon.svg|35px|right]]&lt;br /&gt;
|}&amp;lt;/div&amp;gt;&lt;br /&gt;
{{User:MiszaBot/config&lt;br /&gt;
| algo                = old(30d)&lt;br /&gt;
| archive             = Wikipedia:SVG help/Archive %(counter)d&lt;br /&gt;
| counter             = 9&lt;br /&gt;
| maxarchivesize      = 150K&lt;br /&gt;
| archiveheader       = {{Automatic archive navigator}}&lt;br /&gt;
| minthreadstoarchive = 1&lt;br /&gt;
| minthreadsleft      = 4&lt;br /&gt;
}}&lt;br /&gt;
{{skiptotoctalk}}&lt;br /&gt;
__NEWSECTIONLINK__&lt;br /&gt;
{| style=&amp;quot;clear:both; background:white;&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;padding:1em; border:1px solid #A3B1BF; background-color:#E6F2FF&amp;quot; valign=&amp;quot;top&amp;quot;|&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:120%&amp;quot;&amp;gt;SVG help&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Scalable vector graphics]] is a commonly used file format for providing a geometrical description of an image using basic objects such as labels, circles, lines, curves and polygons. An image can be reduced or enlarged to an arbitrary size, and will not suffer image data loss, nor will it become pixelated. SVG makes an excellent format for artwork, diagrams and drawings. SVG images are defined in XML text files. This means that they can be searched, indexed, scripted and, compressed. Since they are XML files, SVG images can be edited with any text editor, but SVG-based drawing programs are also available.&lt;br /&gt;
&lt;br /&gt;
However, the rendering engine used by wiki is not perfect, and may cause the image to be shown incorrectly, or differently from how it is displayed in your [[List of vector graphics editors|vector editor of choice]]. This page enables authors experiencing problems with SVG graphics to obtain some help in getting their images into wiki the way they intend.&lt;br /&gt;
&lt;br /&gt;
{{see|commons:Help:SVG|l1=Help:SVG}}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;vertical-align:top;padding:1em; border:1px solid #A3B1BF; background-color:#E6F2FF&amp;quot; |&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:120%&amp;quot;&amp;gt;Things we can help with&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding-left:5px;padding-right:5px;vertical-align:top;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Understanding SVG&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* Questions about the SVG format&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Using SVG appropriately&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* When to (or not to) use SVG&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What you see is not what you get&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* Missing objects from files&lt;br /&gt;
* Random filled boxes in the image&lt;br /&gt;
* Images that are the wrong size&lt;br /&gt;
* [[m:SVG fonts|Font]] inconsistencies&lt;br /&gt;
* Other weird and wonderful bugs&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Something new&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* Questions that you can&amp;#039;t find a better place for&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; style=&amp;quot;border:1px solid #B1A3BF; padding:1em 1em 1em 1em; background-color:#F2E6FF&amp;quot; | &lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Common problems ===&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:92%;text-align:left;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Testing for problems ====&lt;br /&gt;
The following SVG checkers may help you to detect SVG problems before you upload:&lt;br /&gt;
:* [https://tools.wmflabs.org/svgcheck/ WMF Labs SVG check]&lt;br /&gt;
:* [https://commons.wikimedia.org/w/index.php?title=Commons:Commons_SVG_Checker&amp;amp;withJS=MediaWiki:CommonsSvgChecker.js Commons SVG Checker]&lt;br /&gt;
:* [https://validator.w3.org/#validate_by_upload w3.org validator]&lt;br /&gt;
&lt;br /&gt;
==== flowRoot does not appear ====&lt;br /&gt;
[[File:Error-libsvgr-flow.svg|thumb|right|100px|a picture containing SVG1.2-valid flowRoot]]&lt;br /&gt;
{{tracked|T43424|Declined}}&lt;br /&gt;
If black box appear, read [[c:User:JoKalliauer/RepairFlowRoot]] how to solve this issue, but do not remove those objects since they might contain text.&lt;br /&gt;
The workarounds that one can employ are either not to use flowed text (by using the text tool without creating a text field), or convert the text to normal text (by [[c:User:JoKalliauer/RepairFlowRoot#replace_the_flow-text_by_&amp;lt;text&amp;gt;_using_(Text-Editor)|Text-editor or sed-comand]], or [[c:User:JoKalliauer/RepairFlowRoot#replace_notempty_flow-text_using_(Inkscape)|with Inkscape-GUI or with a Inkscape-batch]]), but to stroke the text using &amp;quot;object to path&amp;quot;, since path-text is not recomended and increases file-size.&lt;br /&gt;
&lt;br /&gt;
==== font-family issues ====&lt;br /&gt;
{{tracked|T180923}}&lt;br /&gt;
{{&lt;br /&gt;
multiple image | align = right | direction = horizontal | total_width = 550&lt;br /&gt;
| image1 = 20200522 SVG font rendering at different thumbnail sizes.gif |  caption1 = Rendering anomalies of small fonts in thumbnail views&lt;br /&gt;
| image2 = SVG_Text_Font_Test.svg | caption2 = Fallback fonts&lt;br /&gt;
}}&lt;br /&gt;
Due to copyright restrictions, [[Mediawiki|MediaWiki]] cannot use proprietary fonts that are commonly found on several proprietary operating systems. Fonts such as [[Geneva (typeface)|Geneva]] require licensing fees to distribute. rsvg will not be able to locate such fonts, and the text will fail to appear in the rendered image. There are three solutions to this issue:&lt;br /&gt;
&lt;br /&gt;
* One can substitute a font that is [[m:SVG fonts|available on Wikipedia]]. This approach facilitates editability.&lt;br /&gt;
* One can specify a generic &amp;lt;code&amp;gt;font-family&amp;lt;/code&amp;gt; such as &amp;quot;sans-serif&amp;quot;, &amp;quot;serif&amp;quot;, or &amp;quot;monospace&amp;quot;, but this can lead to inconsistent rendering. It is better to specify a font available on Wikipedia (such as Liberation Sans) with fallback fonts such as: &amp;lt;code&amp;gt;font-family=&amp;quot;Liberation Sans,Arial,Helvetica,sans-serif&amp;quot;&amp;lt;/code&amp;gt;, in which you define a font-list with similar fonts that at least contain one font for each Operating System such as [https://noc.wikimedia.org/conf/fc-list Wikimedia] (e.g. Liberation Sans), Windows (e.g. Arial), Linux (e.g. Liberation Sans), Mac (e.g. Helvetica).&lt;br /&gt;
* Since local rendering should be as close as possible to Wikipedia, it should use locally the same font as it will have on Wikipedia, if available. Therefore always define a Wikimedia-font first. Also, Wikimedia has synonyms for substituting fonts, such as &amp;quot;Arial&amp;quot; for &amp;quot;Liberation Sans&amp;quot;; therefore &amp;lt;code&amp;gt;font-family=&amp;quot;Arial,DejaVu Sans&amp;quot;&amp;lt;/code&amp;gt; will be rendered by &amp;quot;Liberation Sans&amp;quot; and not (as expected) by &amp;quot;DejaVu Sans&amp;quot;. (This is because &amp;quot;Liberation Sans&amp;quot; has the same letter size as &amp;quot;Arial&amp;quot; [metric-compatible], so it is less likely to mess up the text flow.)&lt;br /&gt;
* Converting the text into paths increases file size, and is therefore generally disfavored (except for text logos, etc.).&lt;br /&gt;
* Group the text, create a copy, and convert the copy to paths. Then either:&lt;br /&gt;
*# move the original, editable non-path text into a separate editable text layer that you make transparent (warning: this might be removed by SVG optimizers), or&lt;br /&gt;
*# move the original, editable non-path text outside the visible area (example: [[:File:Essigsäuresynthesen.svg]]). &lt;br /&gt;
&lt;br /&gt;
For ease of subsequent editing and significantly smaller file sizes, substituting the font with an available font is recommended. Many common fonts have non-proprietary alternatives that are similar in typographical style, resulting in minimal disruption to existing images during substitution. For a list of fonts available in Wikipedia, see [[m:SVG fonts|available fonts]] on Meta.&lt;br /&gt;
&lt;br /&gt;
Wikimedia has default fonts, and will use [[Liberation Serif]] for [[Times New Roman]] and [[Liberation Sans]] for [[Arial]]. For further fallbacks see [[c:Help:SVG#fallback]].&lt;br /&gt;
&lt;br /&gt;
Fonts that are available on Wikimedia servers may or may not be available on a visitor&amp;#039;s machine. If the placement or appearance of text in the image is important and there is uncertainty about which fonts are installed on a visitor&amp;#039;s machine, then converting text into path information may be necessary.&lt;br /&gt;
&lt;br /&gt;
==== bad letter-alignment on small font-size ====&lt;br /&gt;
{{tracked|T36947|open}} &lt;br /&gt;
[[File:Fonttest-Kerning.svg|thumb|[[phab:T36947]]]]&lt;br /&gt;
Librsvg calculates the letter-distances inaccurantly for font-sizes of 20px and below.&lt;br /&gt;
&lt;br /&gt;
For a text like&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;svg viewBox=&amp;quot;0 0 100 100&amp;quot; xmlns=&amp;quot;http://www.w3.org/2000/svg&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;text x=&amp;quot;20&amp;quot; y=&amp;quot;30&amp;quot; font-size=&amp;quot;5px&amp;quot;&amp;gt;exampletext&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/svg&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
you can replace it with:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;svg viewBox=&amp;quot;0 0 1000 1000&amp;quot; xmlns=&amp;quot;http://www.w3.org/2000/svg&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;text x=&amp;quot;200&amp;quot; y=&amp;quot;300&amp;quot; font-size=&amp;quot;50px&amp;quot;&amp;gt;exampletext&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/svg&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
or with&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;svg viewBox=&amp;quot;0 0 100 100&amp;quot; xmlns=&amp;quot;http://www.w3.org/2000/svg&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;g transform=&amp;quot;scale(0.1)&amp;quot;&amp;gt;&amp;lt;text x=&amp;quot;200&amp;quot; y=&amp;quot;300&amp;quot; font-size=&amp;quot;50px&amp;quot;&amp;gt;exampletext&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;&lt;br /&gt;
&amp;lt;/svg&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Missing embedded JPEG images ==== &lt;br /&gt;
{{tracked|T193929|invalid}}&lt;br /&gt;
{{multiple image&lt;br /&gt;
| align     = right&lt;br /&gt;
| image1    = Missing embedded JPG example 1.svg&lt;br /&gt;
| width1    = 100&lt;br /&gt;
| caption1  = Normal image&lt;br /&gt;
| image2    = Missing embedded JPG example 2.svg&lt;br /&gt;
| width2    = 100&lt;br /&gt;
| caption2  = Broken image&lt;br /&gt;
}}&lt;br /&gt;
When a [[Raster graphics|raster graphic]] is embedded in an SVG it is encoded into [[Base64|base64]] data. That data is then assigned a [[Internet media type|MIME type]] in the &amp;amp;lt;image&amp;amp;gt; element. In the case of an embedded JPEG, the MIME type is &amp;quot;image/jpeg&amp;quot;. Older versions of [[Inkscape]] (and possibly other editors) assigned the MIME type &amp;quot;image/jpg&amp;quot;. While Inkscape and most web browsers will display such an SVG image just fine, the MediaWiki software that rasterizes the SVG file will have trouble with it. Not recognizing the MIME type &amp;quot;image/jpg&amp;quot; there will simply be an empty space where the image is supposed to be. The fix is to open the SVG file in a text editor, find the &amp;amp;lt;image&amp;amp;gt; element, locate &amp;quot;image/jpg&amp;quot;, change it to &amp;quot;image/jpeg&amp;quot; and re-save. At right is an example of this problem.&lt;br /&gt;
The Commons SVG Checker looks for this problem; see [[Commons:Commons:Commons SVG Checker/KnownBugs#Checks]] for details.&lt;br /&gt;
&lt;br /&gt;
Though Web browsers cope with &amp;#039;&amp;#039;image&amp;#039;&amp;#039; tags without &amp;#039;&amp;#039;width&amp;#039;&amp;#039; and &amp;#039;&amp;#039;height&amp;#039;&amp;#039; specified, &amp;#039;&amp;#039;librsvg&amp;#039;&amp;#039; ignores such images.&lt;br /&gt;
&lt;br /&gt;
==== arc flags ====&lt;br /&gt;
{{tracked|T217990|open}}&lt;br /&gt;
[[File:Latin_letter_Kĸ_(kra)_RSVG-BUG.svg|thumb|[[phab:T217990]]]]&lt;br /&gt;
If circle-segmentes are distorted it is often due to reduced spaces between arc-to-flags, see [[phab:T217990]] for details.&lt;br /&gt;
&lt;br /&gt;
==== Further issues ====&lt;br /&gt;
Further issues can be found at [[:c:Librsvg_bugs]] or at [[:Commons:Commons:Commons SVG Checker/KnownBugs]], and examples can be found at [[:c:Category:Pictures_demonstrating_a_librsvg_bug]]. However most issues (for files &amp;lt;1MB) can be fixed using https://svgworkaroundbot.toolforge.org/ (enable &amp;quot;run svgcleaner&amp;quot; and enable &amp;quot;run scour&amp;quot; before clicking convert), for a more detailed list check [[:c:User:SVGWorkaroundBot]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{clear|right}}&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rendering files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:92%;text-align:left;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Mediawiki|MediaWiki]] (the software from which Wikipedia is run) uses the [[librsvg]]-library to [[Rasterisation|rasterize]] all of its svg files. The version of the rsvg program that is installed on wiki does not always correctly raster the Inkscape or OpenOffice.org SVG files, and does not recognize some formats in text-editor SVG files. The file manager [[GNOME Files]] or [[:c:Commons:Commons_SVG_Checker]] relies on librsvg, so it can be used to check the quality before a SVG is uploaded.&lt;br /&gt;
&lt;br /&gt;
====Rendering Inkscape files====&lt;br /&gt;
There is a simple work-around for the scarcities of librsvg. The operation &amp;quot;Stroke to Path&amp;quot;, to be found under Menu&amp;gt;Path in Inkscape or via {{key press|Ctrl|Alt|C}}, can be applied to all of the objects that are not rendered correctly. To keep the SVGs editable, this should only be done to the files intended for upload, and these files can be deleted afterwards.&lt;br /&gt;
&lt;br /&gt;
As of February 2014, the objects that must be modified to render correctly by librsvg include:&lt;br /&gt;
* Lines with arrow heads (the arrows need to be converted)&lt;br /&gt;
* Text, that has been transformed, e.g. &amp;quot;Text on Path&amp;quot;&lt;br /&gt;
* Compound objects created with the binary path tools (union, intersect etc.)&lt;br /&gt;
&lt;br /&gt;
====Rendering OpenOffice.org SVG files====&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org SVG files may require manual modification before being uploaded to Wikipedia. To achieve this:&lt;br /&gt;
* Change all fonts to Wikipedia supported fonts as mentioned before. (E.g. change &amp;quot;Sans embedded&amp;quot; to &amp;quot;DejaVu Sans&amp;quot;.)&lt;br /&gt;
* Add &amp;quot;px&amp;quot; to all font-size references. (E.g. change &amp;quot;font-size:100&amp;quot; to &amp;quot;font-size:100px&amp;quot;.)&lt;br /&gt;
* Remove all additional x coordinate references in &amp;lt;code&amp;gt;tspan&amp;lt;/code&amp;gt; elements. (E.g. change &amp;lt;code&amp;gt;&amp;lt;tspan x=&amp;quot;17583 17917 &amp;quot; y=&amp;quot;10943&amp;quot;&amp;gt;&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;&amp;lt;tspan x=&amp;quot;17583&amp;quot; y=&amp;quot;10943&amp;quot;&amp;gt;&amp;lt;/code&amp;gt;.)&lt;br /&gt;
* [Not required for OO 2.3.0] Explicitly colour all text (e.g. black) by replacing relevant &amp;quot;stroke:none;fill:none&amp;quot; instances with &amp;quot;stroke:none;fill:rgb(0,0,0)&amp;quot; (note that simply explicitly colouring text black in OpenOffice 3.2.1 does not appear to work).&lt;br /&gt;
&lt;br /&gt;
NB: Vector graphics line widths may also need to be set explicitly in OpenOffice.org Draw.&lt;br /&gt;
&lt;br /&gt;
=====SVG code replacement guide (executing replace all using Nedit regular expressions)=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Original text !! Replacement text&lt;br /&gt;
|-&lt;br /&gt;
| Sans embedded || DejaVu Sans&lt;br /&gt;
|-&lt;br /&gt;
| {{code|1=tspan x=&amp;quot;([0-9]*) ([0-9 ]*)&amp;quot;}} || {{code|1=tspan x=&amp;quot;\1&amp;quot;}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This SVG export procedure has been tested using OO 2.3.0 and OO 3.2.1 with a simple .odg candidate.&lt;br /&gt;
&lt;br /&gt;
{{see|commons:Help:SVG|l1=Help:SVG}}&lt;br /&gt;
&lt;br /&gt;
===Rendering text-editor SVG files===&lt;br /&gt;
SVG files created from scratch in a text editor may make use of any valid SVG syntax, so long as your browser supports the given version of the SVG specification. On Wikipedia however, SVGs are interpreted by the librsvg-library to create PNG previews at different image sizes. That library only recognizes a subset of all valid SVG syntax, and may render your SVG without many features. In order to bypass these deficiencies in the library, there are certain parameters that need to be formatted in specific ways or be assigned a workaround value in order for librsvg to accurately render views of your SVG file.&lt;br /&gt;
&lt;br /&gt;
====&amp;amp;lt;mask&amp;amp;gt; parameter &amp;#039;&amp;#039;maskUnits=&amp;quot;userSpaceOnUse&amp;quot;&amp;#039;&amp;#039;====&lt;br /&gt;
The librsvg-library [https://phabricator.wikimedia.org/T55899 does not interpret] the value of &amp;lt;code&amp;gt;&amp;quot;userSpaceOnUse&amp;quot;&amp;lt;/code&amp;gt; for the parameter &amp;#039;&amp;#039;&amp;lt;code&amp;gt;maskUnits&amp;lt;/code&amp;gt;&amp;#039;&amp;#039; correctly. To bypass this issue, replace &amp;lt;code&amp;gt;maskUnits=&amp;quot;userSpaceOnUse&amp;quot;&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;maskUnits=&amp;quot;-10% -10% 120% 120%&amp;quot;&amp;lt;/code&amp;gt;, and the SVG mask will render properly on Wikipedia.&lt;br /&gt;
&lt;br /&gt;
====parameter &amp;#039;&amp;#039;stroke-dasharray&amp;#039;&amp;#039;====&lt;br /&gt;
The librsvg-library [https://phabricator.wikimedia.org/T32033 does not accept] a &amp;#039;&amp;#039;&amp;lt;code&amp;gt;stroke-dasharray&amp;lt;/code&amp;gt;&amp;#039;&amp;#039; parameter with values separated by spaces. Replace all spaces with commas to bypass this issue: e.g. &amp;lt;code&amp;gt;stroke-dasharray=&amp;quot;2 3 2 4&amp;quot;&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;lt;code&amp;gt;stroke-dasharray=&amp;quot;2,3,2,4&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Use &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;xlink:href=&amp;lt;/u&amp;gt;&amp;#039;&amp;#039;&amp;#039;, not &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;href=&amp;lt;/u&amp;gt;&amp;#039;&amp;#039;&amp;#039; alone, in {{code|&amp;lt;use ___/&amp;gt;}} statements====&lt;br /&gt;
In Wikimedia projects, &amp;#039;&amp;#039;&amp;#039;&amp;lt;use &amp;lt;u&amp;gt;xlink:&amp;lt;/u&amp;gt;href=&amp;quot;#myobjectname&amp;quot; transform=&amp;quot;translate(10 10)&amp;quot; /&amp;gt;&amp;#039;&amp;#039;&amp;#039; will render properly if you have specified  &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;xmlns:xlink=&amp;quot;http://www.w3.org/1999/xlink&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;. Be aware that &amp;#039;&amp;#039;&amp;#039;href=&amp;#039;&amp;#039;&amp;#039; by itself will not work on Wikimedia projects even though it might render properly if directly read by your browser.&lt;br /&gt;
&lt;br /&gt;
====CSS selectors or identifiers must start with a letter or hyphen====&lt;br /&gt;
http://w3.org/TR/css-syntax-3 states, &amp;quot;Property names and at-rule names are always identifiers, which have to start with a letter or a hyphen...&amp;quot;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{{User:RCraig09/Excel to XML for SVG}}&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Assistance==&lt;br /&gt;
&lt;br /&gt;
If you have a tricky SVG file with a problem not described, or can&amp;#039;t quite figure out what the previous section was talking about, you can simply ask for assistance by [[Special:NewSection/{{FULLPAGENAME}}|posting a quick note hereafter]] that outlines the problem, as well as providing links to the files that are exhibiting these problems. Don&amp;#039;t forget to sign your name with four tilde symbols (&amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt;) and an editor will attempt to reply here to help!&lt;br /&gt;
&lt;br /&gt;
When you are happy that a request has been fulfilled, just leave a note so that the request can be archived later, as needed.&lt;br /&gt;
&lt;br /&gt;
An alternative source of help is [[Commons:Commons:Graphics village pump|Commons:Graphics village pump]].&lt;br /&gt;
&lt;br /&gt;
= Current requests =&lt;br /&gt;
{{Archive box|[[Wikipedia:SVG help/Archive 1|1: April 2008 – July 2008]] &amp;lt;br/&amp;gt;[[Wikipedia:SVG help/Archive 2|2: July 2008 – February 2009]] &amp;lt;br/&amp;gt;[[Wikipedia:SVG help/Archive 3|3: February 2009 – May 2010]] &amp;lt;br/&amp;gt;[[Wikipedia:SVG help/Archive 4|4: May 2010 – November 2010]] &amp;lt;br/&amp;gt;[[Wikipedia:SVG help/Archive 5|5: February 2011 – January 2013]] &amp;lt;br/&amp;gt; [[Wikipedia:SVG help/Archive 6|6: January 2013 – September 2017]] &amp;lt;br/&amp;gt; [[Wikipedia:SVG help/Archive 7|7: October 2017 – February 2020]] &amp;lt;br/&amp;gt; [[Wikipedia:SVG help/Archive 8|8: February 2020 – present]]}}&lt;br /&gt;
&lt;br /&gt;
[[Special:NewSection/{{FULLPAGENAME}}|&amp;#039;&amp;#039;&amp;#039;Create a new request&amp;#039;&amp;#039;&amp;#039;]]&lt;br /&gt;
&lt;br /&gt;
== Grid making thumbnail very dark at small sizes ==&lt;br /&gt;
&lt;br /&gt;
[[File:bird_mortality_blocks.svg|thumb|left|200px|&amp;lt;nowiki&amp;gt;Dark at 200px&amp;lt;/nowiki&amp;gt;]]&lt;br /&gt;
[[File:bird_mortality_blocks.svg|thumb|360px|Better at 360px (left faces still black)]]&lt;br /&gt;
Hi SVG experts,&lt;br /&gt;
&lt;br /&gt;
Though the grid in my diagram is white, it is rendered as black at thumbnail sizes under 324px. Would anyone know how to fix the problem for small thumbnails?&lt;br /&gt;
&lt;br /&gt;
Thanks,&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;[[User:cmglee|cm&amp;amp;#610;&amp;amp;#671;ee]]&amp;#039;&amp;#039;&amp;#039;&amp;amp;#9094;[[User_Talk:cmglee|&amp;amp;#964;a&amp;amp;#671;&amp;amp;#954;]] 02:33, 15 November 2021 (UTC)&amp;lt;br clear=&amp;quot;left&amp;quot; /&amp;gt;&lt;br /&gt;
:{{ping|cmglee}} Might it be related to [[:c:Librsvg_bugs#Pattern]] and [[c:User_talk:TilmannR/Archive#librsvgBug_pattern]]{{hp|TilmannR}}?  — [[User:JoKalliauer|&amp;lt;span style=&amp;quot;font-family:Trendy, Tempus Sans Itc;&amp;quot;&amp;gt;Johannes&amp;lt;/span&amp;gt;]] [[User talk:JoKalliauer|&amp;lt;span style=&amp;quot;color:black; font-family:Monotype Corsiva;&amp;quot;&amp;gt;Kalliauer&amp;lt;/span&amp;gt;]] - &amp;lt;small&amp;gt;[[Special:Contributions/JoKalliauer|contrib.]]&amp;lt;/small&amp;gt; 10:41, 22 November 2021 (UTC)&lt;br /&gt;
::Thanks, {{u|JoKalliauer}} I&amp;#039;ll check out your links to see if there is a workaround. &amp;#039;&amp;#039;&amp;#039;[[User:cmglee|cm&amp;amp;#610;&amp;amp;#671;ee]]&amp;#039;&amp;#039;&amp;#039;&amp;amp;#9094;[[User_Talk:cmglee|&amp;amp;#964;a&amp;amp;#671;&amp;amp;#954;]] 22:10, 27 November 2021 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Electoral College Map ==&lt;br /&gt;
&lt;br /&gt;
I would really appreciate it if one of you wonderful experts could make a map similar to this one...&lt;br /&gt;
&lt;br /&gt;
https://upload.wikimedia.org/wikipedia/commons/2/22/2021_US_Electoral_College_objections_map.svg&lt;br /&gt;
&lt;br /&gt;
....except for different colors for different states. I would like to see a map where most of the states are green (#A9FAAD), but all of the following states are yellow (#FFE4E4) - Alabama, Florida, Georgia, Michigan, Mississippi, North Carolina, South Carolina, West Virginia, Wisconsin, Wyoming.&lt;br /&gt;
&lt;br /&gt;
[[User:Capisred|Capisred]] ([[User talk:Capisred|talk]]) 23:56, 16 November 2021 (UTC)&lt;br /&gt;
:{{ping|Capisred}} Can you ask again at [[Wikipedia:Graphics_Lab/Map_workshop]]? This page is for issues on existing SVG files with the thumbnail renderer. Thanks, &amp;#039;&amp;#039;&amp;#039;[[User:cmglee|cm&amp;amp;#610;&amp;amp;#671;ee]]&amp;#039;&amp;#039;&amp;#039;&amp;amp;#9094;[[User_Talk:cmglee|&amp;amp;#964;a&amp;amp;#671;&amp;amp;#954;]] 02:10, 17 November 2021 (UTC)&lt;br /&gt;
&lt;br /&gt;
== [[:File:Brondby IF logo.svg]] ==&lt;br /&gt;
Hello!&lt;br /&gt;
&lt;br /&gt;
I managed to workaround this problem, see [[:File:Brøndby IF.svg]]. I still just want to know why it renders so weirdly. When I press &amp;quot;Edit SVG&amp;quot; using [[c:User:Rillke/SVGedit.js]] the browser rendering is exactly as it should but the RSVG rendering isn&amp;#039;t. Opening the file in Inkscape also just makes it all black. Any clues why?[[User:Jonteemil|Jonteemil]] ([[User talk:Jonteemil|talk]]) 03:51, 19 November 2021 (UTC)&lt;br /&gt;
:{{ping|Jonteemil}} I&amp;#039;ve fixed the SVG by renaming CSS class names starting with underscores to &amp;quot;blue&amp;quot; and &amp;quot;yellow&amp;quot;. http://w3.org/TR/css-syntax-3 states, &amp;quot;Property names and at-rule names are always identifiers, which have to start with a letter or a hyphen...&amp;quot;. Is the thumbnail fine now? &amp;#039;&amp;#039;&amp;#039;[[User:cmglee|cm&amp;amp;#610;&amp;amp;#671;ee]]&amp;#039;&amp;#039;&amp;#039;&amp;amp;#9094;[[User_Talk:cmglee|&amp;amp;#964;a&amp;amp;#671;&amp;amp;#954;]] 00:19, 22 November 2021 (UTC)&lt;br /&gt;
::P.S. You&amp;#039;ve uploaded another version at [[:File:Brøndby_IF.svg]]. What&amp;#039;s the difference? &amp;#039;&amp;#039;&amp;#039;[[User:cmglee|cm&amp;amp;#610;&amp;amp;#671;ee]]&amp;#039;&amp;#039;&amp;#039;&amp;amp;#9094;[[User_Talk:cmglee|&amp;amp;#964;a&amp;amp;#671;&amp;amp;#954;]] 00:35, 22 November 2021 (UTC)&lt;br /&gt;
::{{re|cmglee}} Thanks for your answer. The version at [[:File:Brøndby_IF.svg]] is as I said my workaround by using a different method for extracting the SVG.[[User:Jonteemil|Jonteemil]] ([[User talk:Jonteemil|talk]]) 08:16, 23 November 2021 (UTC)&lt;br /&gt;
::: Ok, I&amp;#039;ve replaced uses of [[:File:Brøndby IF.svg]] with [[:File:Brondby IF logo.svg]] which doesn&amp;#039;t have the Inkscape crud. &amp;#039;&amp;#039;&amp;#039;[[User:cmglee|cm&amp;amp;#610;&amp;amp;#671;ee]]&amp;#039;&amp;#039;&amp;#039;&amp;amp;#9094;[[User_Talk:cmglee|&amp;amp;#964;a&amp;amp;#671;&amp;amp;#954;]] 22:16, 27 November 2021 (UTC)&lt;br /&gt;
{{resolved}}&lt;br /&gt;
&lt;br /&gt;
== Not rendering but only on wikipedia ==&lt;br /&gt;
&lt;br /&gt;
Can someone take a look at this file [[:File:Youth Law Australia logo.svg]], I can not get it to render on wikipedia, but it renders everywhere else. Even on the [[Commons:Commons:Commons SVG Checker|Commons SVG Checker]]. And even in  the file history of the same file, but only when the file is not the current version. I really don&amp;#039;t understand the wikipedia rendering engine. [[User:Auguel|Auguel]] ([[User talk:Auguel|talk]]) 21:16, 29 November 2021 (UTC)&lt;br /&gt;
:Ok it now seems to be rendering, so I guess this is resolved, but my understanding of the engine has gone down. [[User:Auguel|Auguel]] ([[User talk:Auguel|talk]]) 00:05, 30 November 2021 (UTC)&lt;br /&gt;
{{resolved|[[User:Auguel|Auguel]] ([[User talk:Auguel|talk]]) 00:05, 30 November 2021 (UTC)}}&lt;br /&gt;
::{{ping|Auguel}} Next time try [[c:Template:Purge_client_cache]]  — [[User:JoKalliauer|&amp;lt;span style=&amp;quot;font-family:Trendy, Tempus Sans Itc;&amp;quot;&amp;gt;Johannes&amp;lt;/span&amp;gt;]] [[User talk:JoKalliauer|&amp;lt;span style=&amp;quot;color:black; font-family:Monotype Corsiva;&amp;quot;&amp;gt;Kalliauer&amp;lt;/span&amp;gt;]] - &amp;lt;small&amp;gt;[[Special:Contributions/JoKalliauer|contrib.]]&amp;lt;/small&amp;gt; 10:32, 30 November 2021 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Text rendering in infobox or commons page ==&lt;br /&gt;
&lt;br /&gt;
Hello, I hope this is the right place. I made and uploaded a [[c:File:Azomures_(photography_industry)_logo.svg|vectorial file]] and it doesn&amp;#039;t render the text properly. I transformed the text into &amp;quot;path&amp;quot; as it should. Instead of showing the black text in bold letters, it looks simple and less scattered as it should be. The correct version is only visible when you click to see it at [https://upload.wikimedia.org/wikipedia/commons/3/37/Azomures_%28photography_industry%29_logo.svg the real resolution]. Does anyone know how it can be solved?--[[User:Kun Kipcsak|Kun Kipcsak]] ([[User talk:Kun Kipcsak|talk]]) 16:48, 1 December 2021 (UTC)&lt;br /&gt;
&lt;br /&gt;
:{{ping|Kun Kipcsak}}&lt;br /&gt;
:*[[#font-family_issues]]&lt;br /&gt;
:*[[:m:SVG_fonts]]&lt;br /&gt;
:*[[:c:Help:SVG#fallback]]&lt;br /&gt;
: — [[User:JoKalliauer|&amp;lt;span style=&amp;quot;font-family:Trendy, Tempus Sans Itc;&amp;quot;&amp;gt;Johannes&amp;lt;/span&amp;gt;]] [[User talk:JoKalliauer|&amp;lt;span style=&amp;quot;color:black; font-family:Monotype Corsiva;&amp;quot;&amp;gt;Kalliauer&amp;lt;/span&amp;gt;]] - &amp;lt;small&amp;gt;[[Special:Contributions/JoKalliauer|contrib.]]&amp;lt;/small&amp;gt; 17:51, 1 December 2021 (UTC)&lt;br /&gt;
::{{ping|JoKalliauer}} Thank you. It worked.--[[User:Kun Kipcsak|Kun Kipcsak]] ([[User talk:Kun Kipcsak|talk]]) 20:06, 1 December 2021 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Artifacts when using feSpecularLighting and feDistantLight ==&lt;br /&gt;
&lt;br /&gt;
[[File:Blokus_tiles.svg|thumb|Note black pixels around shapes]]&lt;br /&gt;
Hi SVG experts,&lt;br /&gt;
&lt;br /&gt;
I just created this image using an SVG filter to simulate 3D tiles. Strangely, the shapes are surrounded by black pixels. Anyone seen this or know a fix?&lt;br /&gt;
&lt;br /&gt;
Thanks,&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;[[User:cmglee|cm&amp;amp;#610;&amp;amp;#671;ee]]&amp;#039;&amp;#039;&amp;#039;&amp;amp;#9094;[[User_Talk:cmglee|&amp;amp;#964;a&amp;amp;#671;&amp;amp;#954;]] 23:31, 2 December 2021 (UTC)&lt;/div&gt;</summary>
		<author><name>Tachyony</name></author>
	</entry>
</feed>