CINXE.COM
Wikipedia:SVG help - Wikipedia
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Wikipedia:SVG help - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"64071033-f2ec-4ba9-b287-691214796cd1","wgCanonicalNamespace":"Project","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":4,"wgPageName":"Wikipedia:SVG_help","wgTitle":"SVG help","wgCurRevisionId":1259645966,"wgRevisionId":1259645966,"wgArticleId":16440568,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Wikipedia image help","Pages using multiple image with auto scaled images"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Wikipedia:SVG_help","wgRelevantArticleId":16440568,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgRedirectedFrom":"Wikipedia:SVG_Help","wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams": {"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":30000,"wgInternalRedirectTargetUrl":"/wiki/Wikipedia:SVG_help","wgRelatedArticlesCompat":[],"wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"source","wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q2595091","wgCheckUserClientHintsHeadersJsApi":[ "brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","ext.inputBox.styles":"ready","ext.discussionTools.init.styles":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.view.redirect" ,"ext.pygments.view","mediawiki.page.media","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.discussionTools.init","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.discussionTools.init.styles%7Cext.inputBox.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Wikipedia:SVG help - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Wikipedia:SVG_help"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Wikipedia:SVG_help&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Wikipedia:SVG_help"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-replytool-enabled ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-4 ns-subject mw-editable page-Wikipedia_SVG_help rootpage-Wikipedia_SVG_help skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Wikipedia%3ASVG+help" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=Wikipedia%3ASVG+help" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Wikipedia%3ASVG+help" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Wikipedia%3ASVG+help" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-General_suggestions" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#General_suggestions"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>General suggestions</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">1 comment</span> <button aria-controls="toc-General_suggestions-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle General suggestions subsection</span> </button> <ul id="toc-General_suggestions-sublist" class="vector-toc-list"> <li id="toc-Browsers" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Browsers"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Browsers</span> </div> </a> <ul id="toc-Browsers-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Text_editors" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Text_editors"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Text editors</span> </div> </a> <ul id="toc-Text_editors-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Inkscape" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Inkscape"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3</span> <span>Inkscape</span> </div> </a> <ul id="toc-Inkscape-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-OpenOffice.org" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#OpenOffice.org"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.4</span> <span>OpenOffice.org</span> </div> </a> <ul id="toc-OpenOffice.org-sublist" class="vector-toc-list"> <li id="toc-SVG_code_replacement_guide_(executing_replace_all_using_Nedit_regular_expressions)" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#SVG_code_replacement_guide_(executing_replace_all_using_Nedit_regular_expressions)"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.4.1</span> <span>SVG code replacement guide (executing replace all using Nedit regular expressions)</span> </div> </a> <ul id="toc-SVG_code_replacement_guide_(executing_replace_all_using_Nedit_regular_expressions)-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Microsoft_Powerpoint" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Microsoft_Powerpoint"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.5</span> <span>Microsoft Powerpoint</span> </div> </a> <ul id="toc-Microsoft_Powerpoint-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Microsoft_Visio" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Microsoft_Visio"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.6</span> <span>Microsoft Visio</span> </div> </a> <ul id="toc-Microsoft_Visio-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Generating_SVG_charts_from_Microsoft_Excel" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Generating_SVG_charts_from_Microsoft_Excel"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.7</span> <span>Generating SVG charts from Microsoft Excel</span> </div> </a> <ul id="toc-Generating_SVG_charts_from_Microsoft_Excel-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Text_guidance" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Text_guidance"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Text guidance</span> </div> </a> <button aria-controls="toc-Text_guidance-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Text guidance subsection</span> </button> <ul id="toc-Text_guidance-sublist" class="vector-toc-list"> <li id="toc-Use_text_over_paths" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Use_text_over_paths"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Use text over paths</span> </div> </a> <ul id="toc-Use_text_over_paths-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-font-family_property" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#font-family_property"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>font-family property</span> </div> </a> <ul id="toc-font-family_property-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-font-size_property" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#font-size_property"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>font-size property</span> </div> </a> <ul id="toc-font-size_property-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Background_colors" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Background_colors"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Background colors</span> </div> </a> <ul id="toc-Background_colors-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Testing_for_problems" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Testing_for_problems"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>Testing for problems</span> </div> </a> <ul id="toc-Testing_for_problems-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Rendering_SVG_files" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Rendering_SVG_files"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Rendering SVG files</span> </div> </a> <button aria-controls="toc-Rendering_SVG_files-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Rendering SVG files subsection</span> </button> <ul id="toc-Rendering_SVG_files-sublist" class="vector-toc-list"> <li id="toc-<mask>_parameter_maskUnits="userSpaceOnUse"" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#<mask>_parameter_maskUnits="userSpaceOnUse""> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1</span> <span><mask> parameter <i>maskUnits="userSpaceOnUse"</i></span> </div> </a> <ul id="toc-<mask>_parameter_maskUnits="userSpaceOnUse"-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-parameter_stroke-dasharray" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#parameter_stroke-dasharray"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2</span> <span>parameter <i>stroke-dasharray</i></span> </div> </a> <ul id="toc-parameter_stroke-dasharray-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Use_href=_alone,_not_xlink:href=,_in_<use_/>_statements" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Use_href=_alone,_not_xlink:href=,_in_<use_/>_statements"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.3</span> <span>Use href= alone, not xlink:href=, in <use ___/> statements</span> </div> </a> <ul id="toc-Use_href=_alone,_not_xlink:href=,_in_<use_/>_statements-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-CSS_selectors_or_identifiers_must_start_with_a_letter_or_hyphen" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#CSS_selectors_or_identifiers_must_start_with_a_letter_or_hyphen"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.4</span> <span>CSS selectors or identifiers must start with a letter or hyphen</span> </div> </a> <ul id="toc-CSS_selectors_or_identifiers_must_start_with_a_letter_or_hyphen-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Common_problems" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Common_problems"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Common problems</span> </div> </a> <button aria-controls="toc-Common_problems-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Common problems subsection</span> </button> <ul id="toc-Common_problems-sublist" class="vector-toc-list"> <li id="toc-Misaligned_text" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Misaligned_text"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Misaligned text</span> </div> </a> <ul id="toc-Misaligned_text-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-flowRoot_does_not_appear" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#flowRoot_does_not_appear"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>flowRoot does not appear</span> </div> </a> <ul id="toc-flowRoot_does_not_appear-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Missing_embedded_JPEG_images" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Missing_embedded_JPEG_images"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.3</span> <span>Missing embedded JPEG images</span> </div> </a> <ul id="toc-Missing_embedded_JPEG_images-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Further_issues" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Further_issues"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.4</span> <span>Further issues</span> </div> </a> <ul id="toc-Further_issues-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Assistance" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Assistance"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Assistance</span> </div> </a> <ul id="toc-Assistance-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Current_requests" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Current_requests"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Current requests</span> </div> </a> <button aria-controls="toc-Current_requests-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Current requests subsection</span> </button> <ul id="toc-Current_requests-sublist" class="vector-toc-list"> <li id="toc-rsvg_not_respecting_fill-opacity:0_in_style_tag" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#rsvg_not_respecting_fill-opacity:0_in_style_tag"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.1</span> <span>rsvg not respecting fill-opacity:0 in style tag</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">7 comments</span> <ul id="toc-rsvg_not_respecting_fill-opacity:0_in_style_tag-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Transformed_masked_object_does_not_appear" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Transformed_masked_object_does_not_appear"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.2</span> <span>Transformed masked object does not appear</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">1 comment</span> <ul id="toc-Transformed_masked_object_does_not_appear-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Wikipedia</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">SVG help</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 3 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-3" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">3 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-af mw-list-item"><a href="https://af.wikipedia.org/wiki/Wikipedia:Beelde_in_.svg_maak_of_wysig" title="Wikipedia:Beelde in .svg maak of wysig – Afrikaans" lang="af" hreflang="af" data-title="Wikipedia:Beelde in .svg maak of wysig" data-language-autonym="Afrikaans" data-language-local-name="Afrikaans" class="interlanguage-link-target"><span>Afrikaans</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_SVG" title="Wikipedia:WikiProjekt SVG – German" lang="de" hreflang="de" data-title="Wikipedia:WikiProjekt SVG" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Wikiprojekt:Grafiki_wektorowe" title="Wikiprojekt:Grafiki wektorowe – Polish" lang="pl" hreflang="pl" data-title="Wikiprojekt:Grafiki wektorowe" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q2595091#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-project" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Wikipedia:SVG_help" title="View the project page [c]" accesskey="c"><span>Project page</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Wikipedia_talk:SVG_help" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Wikipedia:SVG_help"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-addsection" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=new" title="Start a new section [+]" accesskey="+"><span>Add topic</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Wikipedia:SVG_help&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Wikipedia:SVG_help"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-addsection" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=new"><span>Add topic</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Wikipedia:SVG_help&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Wikipedia:SVG_help" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Wikipedia:SVG_help" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Wikipedia:SVG_help&oldid=1259645966" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Wikipedia:SVG_help&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FWikipedia%3ASVG_help"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FWikipedia%3ASVG_help"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Wikipedia%3ASVG_help&action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Wikipedia:SVG_help&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Help:SVG" hreflang="en"><span>Wikimedia Commons</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q2595091" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"><span class="mw-redirectedfrom">(Redirected from <a href="/w/index.php?title=Wikipedia:SVG_Help&redirect=no" class="mw-redirect" title="Wikipedia:SVG Help">Wikipedia:SVG Help</a>)</span></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">See also: <a href="/wiki/Wikipedia:Graphic_Lab/Resources/SVG" class="mw-redirect" title="Wikipedia:Graphic Lab/Resources/SVG">Wikipedia:Graphic Lab/Resources/SVG</a> and <a href="/wiki/Wikipedia:Graphic_Lab/Illustration_workshop" class="mw-redirect" title="Wikipedia:Graphic Lab/Illustration workshop">Wikipedia:Graphic Lab/Illustration workshop</a></div> <div align="center" style="position:relative;"> <table style="float:center; width:300px; border:2px solid LightSeaGreen; vertical-align:center; background-color:MediumAquamarine; padding:0em; text-align:center; margin-bottom:5px;"> <tbody><tr> <td><figure class="mw-halign-left" typeof="mw:File"><a href="/wiki/File:Ark-icon.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/e/eb/Ark-icon.svg/35px-Ark-icon.svg.png" decoding="async" width="35" height="35" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/eb/Ark-icon.svg/53px-Ark-icon.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/eb/Ark-icon.svg/70px-Ark-icon.svg.png 2x" data-file-width="128" data-file-height="128"/></a><figcaption></figcaption></figure> </td> <td><span style="font-size:140%"><a href="/wiki/Special:NewSection/Wikipedia:SVG_help" title="Special:NewSection/Wikipedia:SVG help">Create a new request</a></span> </td> <td><figure class="mw-halign-right" typeof="mw:File"><a href="/wiki/File:Ark-icon.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/e/eb/Ark-icon.svg/35px-Ark-icon.svg.png" decoding="async" width="35" height="35" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/eb/Ark-icon.svg/53px-Ark-icon.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/eb/Ark-icon.svg/70px-Ark-icon.svg.png 2x" data-file-width="128" data-file-height="128"/></a><figcaption></figcaption></figure> </td></tr></tbody></table></div> <p class="mw-empty-elt"> </p> <style data-mw-deduplicate="TemplateStyles:r1238436933">.mw-parser-output .ombox{margin:4px 0;border-collapse:collapse;border:1px solid #a2a9b1;background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .ombox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .ombox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .ombox-delete{border:2px solid #b32424}.mw-parser-output .ombox-content{border:1px solid #f28500}.mw-parser-output .ombox-style{border:1px solid #fc3}.mw-parser-output .ombox-move{border:1px solid #9932cc}.mw-parser-output .ombox-protection{border:2px solid #a2a9b1}.mw-parser-output .ombox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .ombox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .ombox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .ombox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ombox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .ombox{margin:4px 10%}.mw-parser-output .ombox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}body.skin--responsive .mw-parser-output table.ombox img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .ombox-speedy{background-color:#310402}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .ombox-speedy{background-color:#310402}}</style><table class="plainlinks ombox ombox-notice skiptotalk noprint" role="presentation"><tbody><tr><td class="mbox-empty-cell"></td><td class="mbox-text"><style data-mw-deduplicate="TemplateStyles:r1135323948">body.skin-vector-2022 .mw-parser-output .skiptotalk,body.mw-mf .mw-parser-output .skiptotalk{display:none}.mw-parser-output .skiptotalk a{display:block;text-align:center;font-style:italic;line-height:1.9}.mw-parser-output .skiptotalk a::before,.mw-parser-output .skiptotalk a::after{content:"↓";font-size:larger;line-height:1.6;font-style:normal}.mw-parser-output .skiptotalk a::before{float:left}.mw-parser-output .skiptotalk a::after{float:right}</style><a href="#toc">Skip to table of contents</a></td></tr></tbody></table> <table style="clear:both; background:white; color: black;" class="notheme"> <tbody><tr> <td width="50%" style="padding:1em; border:1px solid #A3B1BF; color: black; background-color:#E6F2FF" valign="top"> <p><span style="font-size:120%">SVG help</span> </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Further information: <a href="https://commons.wikimedia.org/wiki/Help:SVG" class="extiw" title="commons:Help:SVG">Commons:Help:SVG</a></div> <p><a href="/wiki/Scalable_Vector_Graphics" class="mw-redirect" title="Scalable Vector Graphics">Scalable Vector Graphics</a> 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. </p><p>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 <a href="/wiki/List_of_vector_graphics_editors" class="mw-redirect" title="List of vector graphics editors">vector editor of choice</a>. This page enables authors experiencing problems with SVG graphics to obtain some help in getting their images into wiki the way they intend. </p> </td> <td style="vertical-align:top;padding:1em; border:1px solid #A3B1BF; background-color:#E6F2FF"> <p><span style="font-size:120%">Things we can help with</span> </p> <div style="padding-left:5px;padding-right:5px;vertical-align:top;"> <hr/> <p><b>Understanding SVG</b> </p> <ul><li>Questions about the SVG format</li></ul> <p><b>Using SVG appropriately</b> </p> <ul><li>When to (or not to) use SVG</li></ul> <p><b>What you see is not what you get</b> </p> <ul><li>Missing objects from files</li> <li>Random filled boxes in the image</li> <li>Images that are the wrong size</li> <li><a href="https://meta.wikimedia.org/wiki/SVG_fonts" class="extiw" title="m:SVG fonts">Font</a> inconsistencies</li> <li>Other weird and wonderful bugs</li></ul> <p><b>Something new</b> </p> <ul><li>Questions that you can't find a better place for</li></ul> </div> </td></tr> <tr> <td colspan="2" style="border:1px solid #B1A3BF; padding:1em 1em 1em 1em; color: black; background-color:#F2E6FF"> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-RCraig09-2021-02-19T23:41:00.000Z","type":"heading","level":0,"id":"h-General_suggestions-2021-02-19T23:41:00.000Z","replies":["h-Browsers-General_suggestions","h-Text_editors-General_suggestions","h-Inkscape-General_suggestions","h-OpenOffice.org-General_suggestions","h-Microsoft_Powerpoint-General_suggestions","h-Microsoft_Visio-General_suggestions","h-Generating_SVG_charts_from_Microsoft_Excel-General_suggestions-2021-02-19T23:41:00.000Z"],"text":"General suggestions","linkableTitle":"General suggestions"}--><h2 id="General_suggestions" data-mw-thread-id="h-General_suggestions-2021-02-19T23:41:00.000Z"><span data-mw-comment-start="" id="h-General_suggestions-2021-02-19T23:41:00.000Z"></span>General suggestions<span data-mw-comment-end="h-General_suggestions-2021-02-19T23:41:00.000Z"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=1" title="Edit section: General suggestions"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-RCraig09-2021-02-19T23:41:00.000Z","type":"heading","level":0,"id":"h-General_suggestions-2021-02-19T23:41:00.000Z","replies":["h-Browsers-General_suggestions","h-Text_editors-General_suggestions","h-Inkscape-General_suggestions","h-OpenOffice.org-General_suggestions","h-Microsoft_Powerpoint-General_suggestions","h-Microsoft_Visio-General_suggestions","h-Generating_SVG_charts_from_Microsoft_Excel-General_suggestions-2021-02-19T23:41:00.000Z"]}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-RCraig09-2021-02-19T23:41:00.000Z-Generating_SVG_charts_from_Microsoft_Excel","timestamp":"2021-02-19T23:41:00.000Z"}__--><!--__DTCOMMENTCOUNT__1__--><!--__DTAUTHORCOUNT__1__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-RCraig09-2021-02-19T23:41:00.000Z","type":"heading","level":0,"id":"h-General_suggestions-2021-02-19T23:41:00.000Z","replies":["h-Browsers-General_suggestions","h-Text_editors-General_suggestions","h-Inkscape-General_suggestions","h-OpenOffice.org-General_suggestions","h-Microsoft_Powerpoint-General_suggestions","h-Microsoft_Visio-General_suggestions","h-Generating_SVG_charts_from_Microsoft_Excel-General_suggestions-2021-02-19T23:41:00.000Z"],"text":"General suggestions","linkableTitle":"General suggestions"}--></div></div></div> <p>The following is a list of common vector editors and suggested settings for compatibility. The user guide of your chosen program may also be valuable in troubleshooting. </p> <div class="mw-heading mw-heading3"><h3 id="Browsers" data-mw-thread-id="h-Browsers-General_suggestions"><span data-mw-comment-start="" id="h-Browsers-General_suggestions"></span>Browsers<span data-mw-comment-end="h-Browsers-General_suggestions"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=2" title="Edit section: Browsers"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Most modern browsers can render SVGs in view-only mode. It may be convenient to set a browser as the default SVG viewer, but you can also paste the file path into the address bar. Please note that even if your browser renders an SVG correctly, it may render differently on Wikipedia. </p> <div class="mw-heading mw-heading3"><h3 id="Text_editors" data-mw-thread-id="h-Text_editors-General_suggestions"><span data-mw-comment-start="" id="h-Text_editors-General_suggestions"></span>Text editors<span data-mw-comment-end="h-Text_editors-General_suggestions"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=3" title="Edit section: Text editors"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>SVG documents are text files, and can be edited like any other text file. Specifically, SVGs are <a href="/wiki/XML" title="XML">XML</a> documents, which have special support in many text editors. One potential disadvantage to editing SVGs by hand is that previewing your changes is more cumbersome. A rudimentary solution would be to open the SVG file in a browser while working on it, and manually refreshing the document to see the result of changes. </p> <div class="mw-heading mw-heading3"><h3 id="Inkscape" data-mw-thread-id="h-Inkscape-General_suggestions"><span data-mw-comment-start="" id="h-Inkscape-General_suggestions"></span>Inkscape<span data-mw-comment-end="h-Inkscape-General_suggestions"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=4" title="Edit section: Inkscape"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>There is a simple work-around for the scarcities of librsvg. The operation "Stroke to Path", to be found under Menu>Path in Inkscape or via <style data-mw-deduplicate="TemplateStyles:r1249182868">.mw-parser-output .keyboard-key{border:1px solid #aaa;border-radius:0.2em;box-shadow:0.1em 0.1em 0.2em rgba(0,0,0,0.1);background-color:var(--background-color-neutral-subtle,#f8f9fa);background-image:linear-gradient(to bottom,var(--background-color-neutral,#eaecf0),var(--background-color-neutral-subtle,#f8f9fa),var(--background-color-neutral,#eaecf0));color:var(--color-base,#202122);padding:0.1em 0.3em;font-family:inherit;font-size:0.85em}</style><kbd class="keyboard-key nowrap">Ctrl</kbd>+<kbd class="keyboard-key nowrap">Alt</kbd>+<kbd class="keyboard-key nowrap">C</kbd>, 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. </p><p>As of February 2014, the objects that must be modified to render correctly by librsvg include: </p> <ul><li>Lines with arrow heads (the arrows need to be converted)</li> <li>Text, that has been transformed, e.g. "Text on Path"</li> <li>Compound objects created with the binary path tools (union, intersect etc.)</li></ul> <div class="mw-heading mw-heading3"><h3 id="OpenOffice.org" data-mw-thread-id="h-OpenOffice.org-General_suggestions"><span data-mw-comment-start="" id="h-OpenOffice.org-General_suggestions"></span>OpenOffice.org<span data-mw-comment-end="h-OpenOffice.org-General_suggestions"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=5" title="Edit section: OpenOffice.org"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>OpenOffice.org SVG files may require manual modification before being uploaded to Wikipedia. To achieve this: </p> <ul><li>Change all fonts to Wikipedia supported fonts as mentioned before. (E.g. change "Sans embedded" to "DejaVu Sans".)</li> <li>Add "px" to all font-size references. (E.g. change "font-size:100" to "font-size:100px".)</li> <li>Remove all additional x coordinate references in <code>tspan</code> elements. (E.g. change <code><tspan x="17583 17917 " y="10943"></code> to <code><tspan x="17583" y="10943"></code>.)</li> <li>[Not required for OO 2.3.0] Explicitly colour all text (e.g. black) by replacing relevant "stroke:none;fill:none" instances with "stroke:none;fill:rgb(0,0,0)" (note that simply explicitly colouring text black in OpenOffice 3.2.1 does not appear to work).</li></ul> <p>NB: Vector graphics line widths may also need to be set explicitly in OpenOffice.org Draw. </p> <div class="mw-heading mw-heading4"><h4 id="SVG_code_replacement_guide_(executing_replace_all_using_Nedit_regular_expressions)" data-mw-thread-id="h-SVG_code_replacement_guide_(executing_replace_all_using_Nedit_regular_expression-OpenOffice.org"><span id="SVG_code_replacement_guide_.28executing_replace_all_using_Nedit_regular_expressions.29"></span><span data-mw-comment-start="" id="h-SVG_code_replacement_guide_(executing_replace_all_using_Nedit_regular_expression-OpenOffice.org"></span>SVG code replacement guide (executing replace all using Nedit regular expressions)<span data-mw-comment-end="h-SVG_code_replacement_guide_(executing_replace_all_using_Nedit_regular_expression-OpenOffice.org"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=6" title="Edit section: SVG code replacement guide (executing replace all using Nedit regular expressions)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable"> <tbody><tr> <th>Original text</th> <th>Replacement text </th></tr> <tr> <td>Sans embedded</td> <td>DejaVu Sans </td></tr> <tr> <td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">tspan x="([0-9]*) ([0-9 ]*)"</code></td> <td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">tspan x="\1"</code> </td></tr></tbody></table> <p>This SVG export procedure has been tested using OO 2.3.0 and OO 3.2.1 with a simple .odg candidate. </p> <div class="mw-heading mw-heading3"><h3 id="Microsoft_Powerpoint" data-mw-thread-id="h-Microsoft_Powerpoint-General_suggestions"><span data-mw-comment-start="" id="h-Microsoft_Powerpoint-General_suggestions"></span>Microsoft Powerpoint<span data-mw-comment-end="h-Microsoft_Powerpoint-General_suggestions"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=7" title="Edit section: Microsoft Powerpoint"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>It is easiest to save entire slides from Powerpoint as svg rather than saving multiselected objects with right click / save as picture, because for entire slides the boundaries will be cropped to the size of the slide and the background will be set to white. To save slides as svg, use file / save as / browse / save as type --> svg. </p><p>If your slide has text, open the exported svg into Notepad and replace all the existing font-family specifications with <code>font-family="Liberation Sans,sans-serif"</code>. This specification will make Wikimedia render SVG fonts similarly to how browsers render Wikipedia fonts. </p><p>Text can also get chopped up on export, which causes rendering and localization bugs. To fix this, search for all <code class="nowrap" style=""></text></code> tags and make sure the tag isn't embedded in another text tag that's on the same line of text. Most embedded text tags can simply be deleted; however, but if content needs to be subscripted or subscripted, then replace the text tag with a <code>tspan</code> specifiction. For subscripts, use <code class="nowrap" style=""><tspan font-size="smaller" baseline-shift="sub"></code>. For superscripts, use <code class="nowrap" style=""><tspan font-size="smaller" baseline-shift="super"></code>. </p> <div class="mw-heading mw-heading3"><h3 id="Microsoft_Visio" data-mw-thread-id="h-Microsoft_Visio-General_suggestions"><span data-mw-comment-start="" id="h-Microsoft_Visio-General_suggestions"></span>Microsoft Visio<span data-mw-comment-end="h-Microsoft_Visio-General_suggestions"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=8" title="Edit section: Microsoft Visio"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Generating_SVG_charts_from_Microsoft_Excel" data-mw-thread-id="h-Generating_SVG_charts_from_Microsoft_Excel-General_suggestions-2021-02-19T23:41:00.000Z"><span data-mw-comment-start="" id="h-Generating_SVG_charts_from_Microsoft_Excel-General_suggestions-2021-02-19T23:41:00.000Z"></span>Generating SVG charts from Microsoft Excel<span data-mw-comment-end="h-Generating_SVG_charts_from_Microsoft_Excel-General_suggestions-2021-02-19T23:41:00.000Z"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=9" title="Edit section: Generating SVG charts from Microsoft Excel"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="boilerplate" style="background-color: #f4fff4; margin: 0; padding: 0 10px 0 10px; border: 1px dotted #aaa;"> <span data-mw-comment-start="" id="c-RCraig09-2021-02-19T23:41:00.000Z-Generating_SVG_charts_from_Microsoft_Excel"></span><figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:20210601_Spreadsheet_automatically_generates_XML_code_for_SVG_graphics_-_flow_chart.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0f/20210601_Spreadsheet_automatically_generates_XML_code_for_SVG_graphics_-_flow_chart.svg/290px-20210601_Spreadsheet_automatically_generates_XML_code_for_SVG_graphics_-_flow_chart.svg.png" decoding="async" width="290" height="105" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/0f/20210601_Spreadsheet_automatically_generates_XML_code_for_SVG_graphics_-_flow_chart.svg/435px-20210601_Spreadsheet_automatically_generates_XML_code_for_SVG_graphics_-_flow_chart.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/0f/20210601_Spreadsheet_automatically_generates_XML_code_for_SVG_graphics_-_flow_chart.svg/580px-20210601_Spreadsheet_automatically_generates_XML_code_for_SVG_graphics_-_flow_chart.svg.png 2x" data-file-width="1100" data-file-height="400"/></a><figcaption>General concept above; examples below.</figcaption></figure> <style data-mw-deduplicate="TemplateStyles:r1237032888/mw-parser-output/.tmulti">.mw-parser-output .tmulti .multiimageinner{display:flex;flex-direction:column}.mw-parser-output .tmulti .trow{display:flex;flex-direction:row;clear:left;flex-wrap:wrap;width:100%;box-sizing:border-box}.mw-parser-output .tmulti .tsingle{margin:1px;float:left}.mw-parser-output .tmulti .theader{clear:both;font-weight:bold;text-align:center;align-self:center;background-color:transparent;width:100%}.mw-parser-output .tmulti .thumbcaption{background-color:transparent}.mw-parser-output .tmulti .text-align-left{text-align:left}.mw-parser-output .tmulti .text-align-right{text-align:right}.mw-parser-output .tmulti .text-align-center{text-align:center}@media all and (max-width:720px){.mw-parser-output .tmulti .thumbinner{width:100%!important;box-sizing:border-box;max-width:none!important;align-items:center}.mw-parser-output .tmulti .trow{justify-content:center}.mw-parser-output .tmulti .tsingle{float:none!important;max-width:100%!important;box-sizing:border-box;text-align:center}.mw-parser-output .tmulti .tsingle .thumbcaption{text-align:left}.mw-parser-output .tmulti .trow>.thumbcaption{text-align:center}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .tmulti .multiimageinner img{background-color:white}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .tmulti .multiimageinner img{background-color:white}}</style><div class="thumb tmulti tright"><div class="thumbinner multiimageinner" style="width:292px;max-width:292px"><div class="trow"><div class="tsingle" style="width:164px;max-width:164px"><div class="thumbimage" style="height:91px;overflow:hidden"><span typeof="mw:File"><a href="/wiki/File:20210502_Warming_stripes_comparison_of_Global_Mean_Surface_Temperature_datasets.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/d/dc/20210502_Warming_stripes_comparison_of_Global_Mean_Surface_Temperature_datasets.svg/162px-20210502_Warming_stripes_comparison_of_Global_Mean_Surface_Temperature_datasets.svg.png" decoding="async" width="162" height="91" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/dc/20210502_Warming_stripes_comparison_of_Global_Mean_Surface_Temperature_datasets.svg/243px-20210502_Warming_stripes_comparison_of_Global_Mean_Surface_Temperature_datasets.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/dc/20210502_Warming_stripes_comparison_of_Global_Mean_Surface_Temperature_datasets.svg/324px-20210502_Warming_stripes_comparison_of_Global_Mean_Surface_Temperature_datasets.svg.png 2x" data-file-width="1200" data-file-height="675"/></a></span></div><div class="thumbcaption">Warming stripes<br/>(five examples compared)</div></div><div class="tsingle" style="width:124px;max-width:124px"><div class="thumbimage" style="height:91px;overflow:hidden"><span typeof="mw:File"><a href="/wiki/File:20210822_Global_warming_-_warming_stripes_bar_chart.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/46/20210822_Global_warming_-_warming_stripes_bar_chart.svg/122px-20210822_Global_warming_-_warming_stripes_bar_chart.svg.png" decoding="async" width="122" height="92" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/46/20210822_Global_warming_-_warming_stripes_bar_chart.svg/183px-20210822_Global_warming_-_warming_stripes_bar_chart.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/46/20210822_Global_warming_-_warming_stripes_bar_chart.svg/244px-20210822_Global_warming_-_warming_stripes_bar_chart.svg.png 2x" data-file-width="1000" data-file-height="750"/></a></span></div><div class="thumbcaption">Warming stripes <b>bar chart</b></div></div></div></div></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237032888/mw-parser-output/.tmulti"><div class="thumb tmulti tright"><div class="thumbinner multiimageinner" style="width:292px;max-width:292px"><div class="trow"><div class="tsingle" style="width:125px;max-width:125px"><div class="thumbimage" style="height:92px;overflow:hidden"><span typeof="mw:File"><a href="/wiki/File:2020%2B_Electric_vehicle_stock_-_International_Energy_Agency.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fb/2020%2B_Electric_vehicle_stock_-_International_Energy_Agency.svg/123px-2020%2B_Electric_vehicle_stock_-_International_Energy_Agency.svg.png" decoding="async" width="123" height="92" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/fb/2020%2B_Electric_vehicle_stock_-_International_Energy_Agency.svg/185px-2020%2B_Electric_vehicle_stock_-_International_Energy_Agency.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/fb/2020%2B_Electric_vehicle_stock_-_International_Energy_Agency.svg/246px-2020%2B_Electric_vehicle_stock_-_International_Energy_Agency.svg.png 2x" data-file-width="1000" data-file-height="750"/></a></span></div><div class="thumbcaption">Bar chart (vertical)</div></div><div class="tsingle" style="width:163px;max-width:163px"><div class="thumbimage" style="height:92px;overflow:hidden"><span typeof="mw:File"><a href="/wiki/File:1994-_Earth%27s_ice_imbalance_-_ice_loss_-_Climate_change_-_Global_warming.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/49/1994-_Earth%27s_ice_imbalance_-_ice_loss_-_Climate_change_-_Global_warming.svg/161px-1994-_Earth%27s_ice_imbalance_-_ice_loss_-_Climate_change_-_Global_warming.svg.png" decoding="async" width="161" height="93" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/49/1994-_Earth%27s_ice_imbalance_-_ice_loss_-_Climate_change_-_Global_warming.svg/242px-1994-_Earth%27s_ice_imbalance_-_ice_loss_-_Climate_change_-_Global_warming.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/49/1994-_Earth%27s_ice_imbalance_-_ice_loss_-_Climate_change_-_Global_warming.svg/322px-1994-_Earth%27s_ice_imbalance_-_ice_loss_-_Climate_change_-_Global_warming.svg.png 2x" data-file-width="1300" data-file-height="750"/></a></span></div><div class="thumbcaption">Pie chart</div></div></div></div></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237032888/mw-parser-output/.tmulti"><div class="thumb tmulti tright"><div class="thumbinner multiimageinner" style="width:292px;max-width:292px"><div class="trow"><div class="tsingle" style="width:144px;max-width:144px"><div class="thumbimage" style="height:106px;overflow:hidden"><span typeof="mw:File"><a href="/wiki/File:20200324_Global_average_temperature_-_NASA-GISS_HadCrut_NOAA_Japan_BerkeleyE.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a0/20200324_Global_average_temperature_-_NASA-GISS_HadCrut_NOAA_Japan_BerkeleyE.svg/142px-20200324_Global_average_temperature_-_NASA-GISS_HadCrut_NOAA_Japan_BerkeleyE.svg.png" decoding="async" width="142" height="107" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/a0/20200324_Global_average_temperature_-_NASA-GISS_HadCrut_NOAA_Japan_BerkeleyE.svg/213px-20200324_Global_average_temperature_-_NASA-GISS_HadCrut_NOAA_Japan_BerkeleyE.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/a0/20200324_Global_average_temperature_-_NASA-GISS_HadCrut_NOAA_Japan_BerkeleyE.svg/284px-20200324_Global_average_temperature_-_NASA-GISS_HadCrut_NOAA_Japan_BerkeleyE.svg.png 2x" data-file-width="1000" data-file-height="750"/></a></span></div><div class="thumbcaption">Line charts</div></div><div class="tsingle" style="width:144px;max-width:144px"><div class="thumbimage" style="height:106px;overflow:hidden"><span typeof="mw:File"><a href="/wiki/File:20210709_Bowling_-_strikes_versus_set_scores_-_scatter_plot.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/5/51/20210709_Bowling_-_strikes_versus_set_scores_-_scatter_plot.svg/142px-20210709_Bowling_-_strikes_versus_set_scores_-_scatter_plot.svg.png" decoding="async" width="142" height="107" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/5/51/20210709_Bowling_-_strikes_versus_set_scores_-_scatter_plot.svg/213px-20210709_Bowling_-_strikes_versus_set_scores_-_scatter_plot.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/5/51/20210709_Bowling_-_strikes_versus_set_scores_-_scatter_plot.svg/284px-20210709_Bowling_-_strikes_versus_set_scores_-_scatter_plot.svg.png 2x" data-file-width="1000" data-file-height="750"/></a></span></div><div class="thumbcaption">Scatterplot</div></div></div></div></div> <p>I've uploaded .xlsx (Microsoft Excel) spreadsheets that automatically generate XML code for charts in SVG format. </p><p>You simply paste or enter your data into the spreadsheet, and specify image dimensions, number of grid lines, font sizes, etc. The spreadsheet <i>instantly and automatically generates</i> a column of XML code that you simply copy and paste into a text editor and save as an ".svg" file. The spreadsheets produce lean SVG code, avoiding the "extra stuff" that Inkscape inserts. They should save you time in creating SVG charts. </p><p>Feedback and suggestions on <a href="/wiki/User_talk:RCraig09" title="User talk:RCraig09">my talk page</a> are welcome. <a href="/wiki/User:RCraig09" title="User:RCraig09">RCraig09</a> (<a href="/wiki/User_talk:RCraig09" title="User talk:RCraig09"><span class="signature-talk">talk</span></a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:SVG_help#c-RCraig09-2021-02-19T23:41:00.000Z-Generating_SVG_charts_from_Microsoft_Excel" class="ext-discussiontools-init-timestamplink">23:41, 19 February 2021 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-RCraig09-2021-02-19T23:41:00.000Z-Generating_SVG_charts_from_Microsoft_Excel"><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">reply</a><span class="ext-discussiontools-init-replylink-bracket">]</span><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2021-02-19T23:41:00.000Z","author":"RCraig09","type":"comment","level":1,"id":"c-RCraig09-2021-02-19T23:41:00.000Z-Generating_SVG_charts_from_Microsoft_Excel","replies":[]}}--></span><span data-mw-comment-end="c-RCraig09-2021-02-19T23:41:00.000Z-Generating_SVG_charts_from_Microsoft_Excel"></span> </p> <div class="center">Click <a href="/wiki/User:RCraig09/Excel_to_XML_for_SVG/How_to" title="User:RCraig09/Excel to XML for SVG/How to"><b>HOW TO</b></a> for detailed explanation.</div> <div class="center">Click <a rel="nofollow" class="external text" href="https://drive.google.com/drive/folders/1edEeBNX55Eh1a8hSmzfmX9w7tbMx2uOz?usp=sharing"><b>HERE</b></a> (else <a rel="nofollow" class="external text" href="https://drive.google.com/drive/folders/1edEeBNX55Eh1a8hSmzfmX9w7tbMx2uOz?usp=share_link"><b>HERE</b></a>) to download the spreadsheets.</div> <div class="center">Example SVG files: <a class="external text" href="https://commons.wikimedia.org/wiki/Category:SVG_diagrams_created_with_spreadsheet"><b>Category:SVG diagrams created with spreadsheet</b></a>.</div> <ol><li><b><span style="color: red;">Warming stripes</span></b> — Accepts a single dataset and converts to SVG code portraying <a href="/wiki/Ed_Hawkins_(climatologist)" title="Ed Hawkins (climatologist)">Ed Hawkins'</a> <a href="/wiki/Warming_stripes" title="Warming stripes">warming stripes</a> graphics. User chooses vertical or horizontal stripes; normal or reverse data ordering; or from a variety of geometric shapes (updated 17 May 2023). . . . . <a href="/wiki/User:RCraig09/Warming_stripes_in_shapes" title="User:RCraig09/Warming stripes in shapes"><b>Click here</b></a> to see examples of warming stripes embedded in different shapes.</li> <li><b><span style="color: red;">Warming stripes bar chart</span></b> — Accepts a single dataset and creates a conventional bar chart whose individual bars/columns are coloured according to Dr. Hawkins' warming stripes colour scheme. Alternate option: choose one colour for ascending bars and another colour for descending bars. (updated 28 August 2023)</li> <li><b><span style="color: red;">Line charts</span></b> — Accepts up to six datasets. (updated 30 August 2023)</li> <li><b><span style="color: red;">Vertical bar charts (column charts)</span></b> — Accepts up to six datasets. Toggle between clustered and stacked charts; user can adjust "Yfloor"—the Y level (usually=0) from which columns rise or fall; user chooses to keep or ignore negative input values. (updated 27 August 2023)</li> <li><b><span style="color: red;">Horizontal bar charts</span></b> — Accepts up to six datasets. Toggle between clustered and stacked charts; user can adjust "Yfloor"—the value (usually=0) from which bars extend; user chooses to keep or ignore negative input values. (updated 27 August 2023)</li> <li><b><span style="color: red;">Scatter plots</span></b> — Accepts up to five datasets. (updated 28 August 2023)</li> <li><b><span style="color: red;">Pie charts</span></b> — Accepts a single dataset of up to 36 items. (updated 17 May 2023)</li> <li><b><span style="color: red;">Variable-width bar charts</span></b> — Accepts up to six datasets; is like "Vertical bar charts", above, but user can choose different widths for different bars. (updated 27 August 2023)</li></ol> <div style="clear:both;" class=""></div> </div> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Text_guidance" data-mw-thread-id="h-Text_guidance"><span data-mw-comment-start="" id="h-Text_guidance"></span>Text guidance<span data-mw-comment-end="h-Text_guidance"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=10" title="Edit section: Text guidance"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Text_guidance","replies":["h-Use_text_over_paths-Text_guidance","h-font-family_property-Text_guidance","h-font-size_property-Text_guidance","h-Background_colors-Text_guidance","h-Testing_for_problems-Text_guidance"]}}--></div> <div class="mw-heading mw-heading3"><h3 id="Use_text_over_paths" data-mw-thread-id="h-Use_text_over_paths-Text_guidance"><span data-mw-comment-start="" id="h-Use_text_over_paths-Text_guidance"></span>Use text over paths<span data-mw-comment-end="h-Use_text_over_paths-Text_guidance"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=11" title="Edit section: Use text over paths"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Converting text in an SVG file into paths (shapes) increases file size, prevents localization/accessibility features, and complicates edits/modifications down the line. It is therefore generally disfavored, with some exceptions, such as text-based logos. The Wikimedia text renderer can introduce bugs as its fonts may differ from browser fonts or SVG editor fonts, but following the guidance below should minimize these errors. </p> <div class="mw-heading mw-heading3"><h3 id="font-family_property" data-mw-thread-id="h-font-family_property-Text_guidance"><span data-mw-comment-start="" id="h-font-family_property-Text_guidance"></span>font-family property<span data-mw-comment-end="h-font-family_property-Text_guidance"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=12" title="Edit section: font-family property"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1227084136">.mw-parser-output .tracked{float:right;clear:right;margin:0 0 1em 1em;width:12em;border:1px solid #72777d;border-radius:2px;background-color:var(--background-color-interactive,#EAECF0);color:var(--color-base,#202122);font-size:85%;text-align:center;padding:0.5em}.mw-parser-output .tracked-url{font-weight:bold}.mw-parser-output .tracked-closure{color:black;font-weight:bold;text-transform:uppercase}.mw-parser-output .tracked-resolved{color:green}</style><div role="note" class="tracked plainlinks mw-trackedTemplate">Tracked in <a href="https://phabricator.wikimedia.org/" class="extiw" title="phabricator:">Phabricator</a><br/><span class="tracked-url"><a href="https://phabricator.wikimedia.org/T180923" class="extiw" title="phabricator:T180923"><span class="trakfab-T180923"> Task T180923</span></a></span><br/></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:SVG_Text_Font_Test.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/SVG_Text_Font_Test.svg/300px-SVG_Text_Font_Test.svg.png" decoding="async" width="300" height="146" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/SVG_Text_Font_Test.svg/450px-SVG_Text_Font_Test.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/SVG_Text_Font_Test.svg/600px-SVG_Text_Font_Test.svg.png 2x" data-file-width="1050" data-file-height="510"/></a><figcaption>Fallback fonts</figcaption></figure> <p>Due to copyright restrictions, <a href="/wiki/Mediawiki" class="mw-redirect" title="Mediawiki">MediaWiki</a> cannot use proprietary fonts that are commonly found on several proprietary operating systems. Fonts such as <a href="/wiki/Geneva_(typeface)" title="Geneva (typeface)">Geneva</a> 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: </p> <ul><li>One can substitute a font that is <a href="https://meta.wikimedia.org/wiki/SVG_fonts" class="extiw" title="m:SVG fonts">available on Wikipedia</a>. This approach facilitates editability.</li> <li>One can specify a generic <code>font-family</code> such as "sans-serif", "serif", or "monospace", 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: <code>font-family="Liberation Sans,Arial,Helvetica,sans-serif"</code>, in which you define a font-list with similar fonts that at least contain one font for each Operating System such as <a class="external text" href="https://noc.wikimedia.org/conf/fc-list">Wikimedia</a> (e.g. Liberation Sans), Windows (e.g. Arial), Linux (e.g. Liberation Sans), Mac (e.g. Helvetica).</li> <li>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 "Arial" for "Liberation Sans"; therefore <code>font-family="Arial,DejaVu Sans"</code> will be rendered by "Liberation Sans" and not (as expected) by "DejaVu Sans". (This is because "Liberation Sans" has the same letter size as "Arial" [metric-compatible], so it is less likely to mess up the text flow.)</li> <li>Group the text, create a copy, and convert the copy to paths. Then either: <ol><li>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</li> <li>move the original, editable non-path text outside the visible area (example: <a href="/wiki/File:Essigs%C3%A4uresynthesen.svg" title="File:Essigsäuresynthesen.svg">File:Essigsäuresynthesen.svg</a>).</li></ol></li></ul> <p>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 <a href="https://meta.wikimedia.org/wiki/SVG_fonts" class="extiw" title="m:SVG fonts">available fonts</a> on Meta. </p><p>Wikimedia has default fonts, and will use <a href="/wiki/Liberation_Serif" class="mw-redirect" title="Liberation Serif">Liberation Serif</a> for <a href="/wiki/Times_New_Roman" title="Times New Roman">Times New Roman</a> and <a href="/wiki/Liberation_Sans" class="mw-redirect" title="Liberation Sans">Liberation Sans</a> for <a href="/wiki/Arial" title="Arial">Arial</a>. For further fallbacks see <a href="https://commons.wikimedia.org/wiki/Help:SVG#fallback" class="extiw" title="c:Help:SVG">c:Help:SVG#fallback</a>. </p><p>Fonts that are available on Wikimedia servers may or may not be available on a visitor'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's machine, then converting text into path information may be necessary. </p> <div class="mw-heading mw-heading3"><h3 id="font-size_property" data-mw-thread-id="h-font-size_property-Text_guidance"><span data-mw-comment-start="" id="h-font-size_property-Text_guidance"></span>font-size property<span data-mw-comment-end="h-font-size_property-Text_guidance"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=13" title="Edit section: font-size property"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:20200522_SVG_font_rendering_at_different_thumbnail_sizes.gif" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/8/85/20200522_SVG_font_rendering_at_different_thumbnail_sizes.gif/300px-20200522_SVG_font_rendering_at_different_thumbnail_sizes.gif" decoding="async" width="300" height="150" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/85/20200522_SVG_font_rendering_at_different_thumbnail_sizes.gif/450px-20200522_SVG_font_rendering_at_different_thumbnail_sizes.gif 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/85/20200522_SVG_font_rendering_at_different_thumbnail_sizes.gif/600px-20200522_SVG_font_rendering_at_different_thumbnail_sizes.gif 2x" data-file-width="850" data-file-height="425"/></a><figcaption>Rendering anomalies may occur in thumbnail views if small font sizes are used. Declaring <code>font-size="35"</code> (or larger) appears to avoid this problem, depending on the pixel size of your graphic.</figcaption></figure> <p>Fonts should be sized so that they look good as thumbnails on wikipedia pages and so they are easy to view on smartphones. Smartphones are how most people access wikipedia. Thumbnails are how most other people see images, as very few people click images and zoom them in to see them. Avoid using or creating images with fonts that are too small to be legible in thumbnail or smartphone views. </p><p>The font size that appears in a thumbnail is a combination of svg width, thumbnail width, and font size. To match wikipedia font size as a thumbnail, use font-size = (63/(your upright value))*((your svg width)/1000). For instance, if the thumbnail will be scaled up to thumb upright=1.35 and your image has svg width of 960, set font-size in the svg to (63/1.35)*(960/1000) = 44.8. </p> <div class="mw-heading mw-heading3"><h3 id="Background_colors" data-mw-thread-id="h-Background_colors-Text_guidance"><span data-mw-comment-start="" id="h-Background_colors-Text_guidance"></span>Background colors<span data-mw-comment-end="h-Background_colors-Text_guidance"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=14" title="Edit section: Background colors"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Transparent backgrounds are fine, but do not think your image will always be displayed on a light or white background. The wikipedia smartphone app, for instance, renders images on a black background, so if you show black text on a transparent background it will be invisible. </p> <div class="mw-heading mw-heading3"><h3 id="Testing_for_problems" data-mw-thread-id="h-Testing_for_problems-Text_guidance"><span data-mw-comment-start="" id="h-Testing_for_problems-Text_guidance"></span>Testing for problems<span data-mw-comment-end="h-Testing_for_problems-Text_guidance"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=15" title="Edit section: Testing for problems"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The following SVG checkers may help you to detect SVG problems before you upload: </p> <dl><dd><ul><li><a class="external text" href="https://tools.wmflabs.org/svgcheck/">WMF Labs SVG check</a></li> <li><a class="external text" href="https://commons.wikimedia.org/w/index.php?title=Commons:Commons_SVG_Checker&withJS=MediaWiki:CommonsSvgChecker.js">Commons SVG Checker</a></li> <li><a rel="nofollow" class="external text" href="https://validator.w3.org/#validate_by_upload">w3.org validator</a></li></ul></dd></dl> <p>None of these checkers are foolproof, so it's wise to validate images. You can preliminarily validate images by uploading them to the shared, temporary-use location <a class="external text" href="https://commons.wikimedia.org/wiki/File:Test.svg">Test.svg</a>, though other users may overwrite your image at any time. </p><p>To force refresh images in your browser use Ctrl+F5 (Shift-Reload on Mac), so that you see the latest upload and not cached image copies (this is necessary even on wikimedia upload pages). </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Rendering_SVG_files" data-mw-thread-id="h-Rendering_SVG_files"><span data-mw-comment-start="" id="h-Rendering_SVG_files"></span>Rendering SVG files<span data-mw-comment-end="h-Rendering_SVG_files"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=16" title="Edit section: Rendering SVG files"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Rendering_SVG_files","replies":["h-<mask>_parameter_maskUnits=\"userSpaceOnUse\"-Rendering_SVG_files","h-parameter_stroke-dasharray-Rendering_SVG_files","h-Use_href=_alone,_not_xlink:href=,_in_<use_\/>_statements-Rendering_SVG_files","h-CSS_selectors_or_identifiers_must_start_with_a_letter_or_hyphen-Rendering_SVG_files"]}}--></div> <p>On Wikipedia SVGs are interpreted by the <a href="/wiki/Librsvg" title="Librsvg">librsvg</a>-library to create PNG previews at different image sizes (to <a href="/wiki/Rasterisation" title="Rasterisation">rasterize</a> them). That library only recognizes a subset of all valid SVG syntax, and may render your SVG without many features. </p><p>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. Some issues are enumerated below, but be sure to <a href="#Testing_for_problems">test your SVG files</a> before and after uploading them. </p> <div class="mw-heading mw-heading3"><h3 id="<mask>_parameter_maskUnits="userSpaceOnUse"" data-mw-thread-id="h-<mask>_parameter_maskUnits="userSpaceOnUse"-Rendering_SVG_files"><span id=".3Cmask.3E_parameter_maskUnits.3D.22userSpaceOnUse.22"></span><span data-mw-comment-start="" id="h-<mask>_parameter_maskUnits="userSpaceOnUse"-Rendering_SVG_files"></span><mask> parameter <i>maskUnits="userSpaceOnUse"</i><span data-mw-comment-end="h-<mask>_parameter_maskUnits="userSpaceOnUse"-Rendering_SVG_files"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=17" title="Edit section: <mask> parameter maskUnits="userSpaceOnUse""><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The librsvg-library <a class="external text" href="https://phabricator.wikimedia.org/T55899">does not interpret</a> the value of <code>"userSpaceOnUse"</code> for the parameter <i><code>maskUnits</code></i> correctly. To bypass this issue, replace <code>maskUnits="userSpaceOnUse"</code> with <code>maskUnits="-10% -10% 120% 120%"</code>, and the SVG mask will render properly on Wikipedia. </p> <div class="mw-heading mw-heading3"><h3 id="parameter_stroke-dasharray" data-mw-thread-id="h-parameter_stroke-dasharray-Rendering_SVG_files"><span data-mw-comment-start="" id="h-parameter_stroke-dasharray-Rendering_SVG_files"></span>parameter <i>stroke-dasharray</i><span data-mw-comment-end="h-parameter_stroke-dasharray-Rendering_SVG_files"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=18" title="Edit section: parameter stroke-dasharray"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The librsvg-library <a class="external text" href="https://phabricator.wikimedia.org/T32033">does not accept</a> a <i><code>stroke-dasharray</code></i> parameter with values separated by spaces. Replace all spaces with commas to bypass this issue: <br/>Example: replace <code>stroke-dasharray="2 3 2 4"</code> with <code>stroke-dasharray="2,3,2,4"</code> </p> <div class="mw-heading mw-heading3"><h3 id="Use_href=_alone,_not_xlink:href=,_in_<use_/>_statements" data-mw-thread-id="h-Use_href=_alone,_not_xlink:href=,_in_<use_/>_statements-Rendering_SVG_files"><span id="Use_href.3D_alone.2C_not_xlink:href.3D.2C_in_.3Cuse_.2F.3E_statements"></span><span data-mw-comment-start="" id="h-Use_href=_alone,_not_xlink:href=,_in_<use_/>_statements-Rendering_SVG_files"></span>Use <code>href=</code> alone, not <code>xlink:href=</code>, in <code><use ___/></code> statements<span data-mw-comment-end="h-Use_href=_alone,_not_xlink:href=,_in_<use_/>_statements-Rendering_SVG_files"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=19" title="Edit section: Use href= alone, not xlink:href=, in <use ___/> statements"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><code>xlink:href</code> was deprecated and replaced by <code>href</code> in SVG 2, released in 2018. Between 2023 and 2024, Wikimedia's SVG renderer has been updated to follow suit, so <code>xlink:href</code> no longer works. Instead, <code>href</code> should now be used. </p> <div class="mw-heading mw-heading3"><h3 id="CSS_selectors_or_identifiers_must_start_with_a_letter_or_hyphen" data-mw-thread-id="h-CSS_selectors_or_identifiers_must_start_with_a_letter_or_hyphen-Rendering_SVG_files"><span data-mw-comment-start="" id="h-CSS_selectors_or_identifiers_must_start_with_a_letter_or_hyphen-Rendering_SVG_files"></span>CSS selectors or identifiers must start with a letter or hyphen<span data-mw-comment-end="h-CSS_selectors_or_identifiers_must_start_with_a_letter_or_hyphen-Rendering_SVG_files"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=20" title="Edit section: CSS selectors or identifiers must start with a letter or hyphen"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><a rel="nofollow" class="external free" href="http://w3.org/TR/css-syntax-3">http://w3.org/TR/css-syntax-3</a> states, "Property names and at-rule names are always identifiers, which have to start with a letter or a hyphen..." </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Common_problems" data-mw-thread-id="h-Common_problems"><span data-mw-comment-start="" id="h-Common_problems"></span>Common problems<span data-mw-comment-end="h-Common_problems"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=21" title="Edit section: Common problems"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Common_problems","replies":["h-Misaligned_text-Common_problems","h-flowRoot_does_not_appear-Common_problems","h-Missing_embedded_JPEG_images-Common_problems","h-Further_issues-Common_problems"]}}--></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">See also: <a href="https://commons.wikimedia.org/wiki/Help:SVG" class="extiw" title="commons:Help:SVG">commons:Help:SVG</a></div> <div class="mw-heading mw-heading3"><h3 id="Misaligned_text" data-mw-thread-id="h-Misaligned_text-Common_problems"><span data-mw-comment-start="" id="h-Misaligned_text-Common_problems"></span>Misaligned text<span data-mw-comment-end="h-Misaligned_text-Common_problems"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=22" title="Edit section: Misaligned text"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1227084136"><div role="note" class="tracked plainlinks mw-trackedTemplate">Tracked in <a href="https://phabricator.wikimedia.org/" class="extiw" title="phabricator:">Phabricator</a><br/><span class="tracked-url"><a href="https://phabricator.wikimedia.org/T97233" class="extiw" title="phabricator:T97233"><span class="trakfab-T97233"> Task T97233</span></a></span><br/></div> <p>The latest thumbnail-image-maker (named <i>rsvg</i>) unfortunately <a class="external text" href="https://phabricator.wikimedia.org/T97233#8977673">has a bug which misaligns centre- or right-aligned <code>text</code> tags containing <code>tspan</code> tags on the same line.</a> </p> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Conservation_of_etendue.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Conservation_of_etendue.svg/170px-Conservation_of_etendue.svg.png" decoding="async" width="170" height="128" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Conservation_of_etendue.svg/255px-Conservation_of_etendue.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Conservation_of_etendue.svg/340px-Conservation_of_etendue.svg.png 2x" data-file-width="512" data-file-height="384"/></a><figcaption>SVG with assorted workarounds for <a href="https://phabricator.wikimedia.org/T97233" class="extiw" title="phabricator:T97233">T97233</a></figcaption></figure> <p>While developers work on a solution, here are some remedies in decreasing usefulness: </p> <dl><dd><ol><li>Left-align affected <code>text</code> tags with <code>text-anchor="start"</code></li> <li>Specify either the <code>y</code> or <code>dy</code> attribute for affected <code>tspan</code> tags</li> <li>If using multiple <code>tspan</code> tags on a line for: <ul><li>word and character spacing, use: <ol><li><code>&#160;</code> (non-breaking space), <code>&#8201;</code> (thin space) and/or <code>&#8202;</code> (hair space) characters</li> <li>the <code>letter-spacing</code> attribute</li> <li>a monospaced font such as <code>Liberation Mono</code> (last resort)</li></ol></li> <li>subscripts or superscripts, use <a href="/wiki/Unicode_subscripts_and_superscripts" title="Unicode subscripts and superscripts">Unicode subscripts and superscripts</a></li> <li>bolding or italicizing variables etc in mathematics, use <a href="/wiki/Mathematical_Alphanumeric_Symbols" title="Mathematical Alphanumeric Symbols">Unicode Mathematical Alphanumeric Symbols</a></li></ul></li> <li>Merge affected <code>tspan</code> tags, even unitalicising variables etc if above methods fail</li> <li>Convert text into shapes (last resort, as the text can no longer be amended, copied or read by screen-readers)</li></ol></dd></dl> <div class="mw-heading mw-heading3"><h3 id="flowRoot_does_not_appear" data-mw-thread-id="h-flowRoot_does_not_appear-Common_problems"><span data-mw-comment-start="" id="h-flowRoot_does_not_appear-Common_problems"></span>flowRoot does not appear<span data-mw-comment-end="h-flowRoot_does_not_appear-Common_problems"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=23" title="Edit section: flowRoot does not appear"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure class="mw-halign-right" typeof="mw:File/Thumb"><a href="/wiki/File:Error-libsvgr-flow.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Error-libsvgr-flow.svg/100px-Error-libsvgr-flow.svg.png" decoding="async" width="100" height="68" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Error-libsvgr-flow.svg/150px-Error-libsvgr-flow.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Error-libsvgr-flow.svg/200px-Error-libsvgr-flow.svg.png 2x" data-file-width="512" data-file-height="349"/></a><figcaption>a picture containing SVG1.2-valid flowRoot</figcaption></figure> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1227084136"><div role="note" class="tracked plainlinks mw-trackedTemplate">Tracked in <a href="https://phabricator.wikimedia.org/" class="extiw" title="phabricator:">Phabricator</a><br/><span class="tracked-url"><a href="https://phabricator.wikimedia.org/T43424" class="extiw" title="phabricator:T43424"><span class="trakfab-T43424"> Task T43424</span></a></span><br/><span class="tracked-closure">Declined</span></div> <p>If a black box appears, read <a href="https://commons.wikimedia.org/wiki/User:JoKalliauer/RepairFlowRoot" class="extiw" title="c:User:JoKalliauer/RepairFlowRoot">c:User:JoKalliauer/RepairFlowRoot</a> how to solve this issue, but do not remove those objects since they might contain text. 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 <a href="https://commons.wikimedia.org/wiki/User:JoKalliauer/RepairFlowRoot#replace_the_flow-text_by_<text>_using_(Text-Editor)" class="extiw" title="c:User:JoKalliauer/RepairFlowRoot">Text-editor or sed-command</a>, or <a href="https://commons.wikimedia.org/wiki/User:JoKalliauer/RepairFlowRoot#replace_notempty_flow-text_using_(Inkscape)" class="extiw" title="c:User:JoKalliauer/RepairFlowRoot">with Inkscape-GUI or with a Inkscape-batch</a>), but to stroke the text using "object to path", since path-text is not recommended and increases file-size. </p> <div class="mw-heading mw-heading3"><h3 id="Missing_embedded_JPEG_images" data-mw-thread-id="h-Missing_embedded_JPEG_images-Common_problems"><span data-mw-comment-start="" id="h-Missing_embedded_JPEG_images-Common_problems"></span>Missing embedded JPEG images<span data-mw-comment-end="h-Missing_embedded_JPEG_images-Common_problems"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=24" title="Edit section: Missing embedded JPEG images"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1227084136"><div role="note" class="tracked plainlinks mw-trackedTemplate">Tracked in <a href="https://phabricator.wikimedia.org/" class="extiw" title="phabricator:">Phabricator</a><br/><span class="tracked-url"><a href="https://phabricator.wikimedia.org/T193929" class="extiw" title="phabricator:T193929"><span class="trakfab-T193929"> Task T193929</span></a></span><br/><span class="tracked-closure">Invalid</span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237032888/mw-parser-output/.tmulti"><div class="thumb tmulti tright"><div class="thumbinner multiimageinner" style="width:208px;max-width:208px"><div class="trow"><div class="tsingle" style="width:102px;max-width:102px"><div class="thumbimage"><span typeof="mw:File"><a href="/wiki/File:Missing_embedded_JPG_example_1.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/40/Missing_embedded_JPG_example_1.svg/100px-Missing_embedded_JPG_example_1.svg.png" decoding="async" width="100" height="100" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/40/Missing_embedded_JPG_example_1.svg/150px-Missing_embedded_JPG_example_1.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/40/Missing_embedded_JPG_example_1.svg/200px-Missing_embedded_JPG_example_1.svg.png 2x" data-file-width="600" data-file-height="600"/></a></span></div><div class="thumbcaption">Normal image</div></div><div class="tsingle" style="width:102px;max-width:102px"><div class="thumbimage"><span typeof="mw:File"><a href="/wiki/File:Missing_embedded_JPG_example_2.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Missing_embedded_JPG_example_2.svg/100px-Missing_embedded_JPG_example_2.svg.png" decoding="async" width="100" height="100" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Missing_embedded_JPG_example_2.svg/150px-Missing_embedded_JPG_example_2.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Missing_embedded_JPG_example_2.svg/200px-Missing_embedded_JPG_example_2.svg.png 2x" data-file-width="600" data-file-height="600"/></a></span></div><div class="thumbcaption">Broken image</div></div></div></div></div> <p>When a <a href="/wiki/Raster_graphics" title="Raster graphics">raster graphic</a> is embedded in an SVG it is encoded into <a href="/wiki/Base64" title="Base64">base64</a> data. That data is then assigned a <a href="/wiki/Internet_media_type" class="mw-redirect" title="Internet media type">MIME type</a> in the <image> element. In the case of an embedded JPEG, the MIME type is "image/jpeg". Older versions of <a href="/wiki/Inkscape" title="Inkscape">Inkscape</a> (and possibly other editors) assigned the MIME type "image/jpg". 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 "image/jpg" 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 <image> element, locate "image/jpg", change it to "image/jpeg" and re-save. At right is an example of this problem. The Commons SVG Checker looks for this problem; see <a href="https://commons.wikimedia.org/wiki/Commons:Commons_SVG_Checker/KnownBugs#Checks" class="extiw" title="commons:Commons:Commons SVG Checker/KnownBugs">Commons:Commons:Commons SVG Checker/KnownBugs#Checks</a> for details. </p><p>Though Web browsers cope with <i>image</i> tags without <i>width</i> and <i>height</i> specified, <i>librsvg</i> ignores such images. </p> <div class="mw-heading mw-heading3"><h3 id="Further_issues" data-mw-thread-id="h-Further_issues-Common_problems"><span data-mw-comment-start="" id="h-Further_issues-Common_problems"></span>Further issues<span data-mw-comment-end="h-Further_issues-Common_problems"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=25" title="Edit section: Further issues"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Further issues can be found at <a href="https://commons.wikimedia.org/wiki/Librsvg_bugs" class="extiw" title="c:Librsvg bugs">c:Librsvg_bugs</a> or at <a href="https://commons.wikimedia.org/wiki/Commons:Commons_SVG_Checker/KnownBugs" class="extiw" title="commons:Commons:Commons SVG Checker/KnownBugs">Commons:Commons:Commons SVG Checker/KnownBugs</a>, and examples can be found at <a href="https://commons.wikimedia.org/wiki/Category:Pictures_demonstrating_a_librsvg_bug" class="extiw" title="c:Category:Pictures demonstrating a librsvg bug">c:Category:Pictures_demonstrating_a_librsvg_bug</a>. However most issues (for files <1MB) can be fixed using <a class="external free" href="https://svgworkaroundbot.toolforge.org/">https://svgworkaroundbot.toolforge.org/</a> (enable "run svgcleaner" and enable "run scour" before clicking convert), for a more detailed list check <a href="https://commons.wikimedia.org/wiki/User:SVGWorkaroundBot" class="extiw" title="c:User:SVGWorkaroundBot">c:User:SVGWorkaroundBot</a>. </p> <div style="clear:right;" class=""></div> <meta property="mw:PageProp/toc"/> </td></tr> </tbody></table> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Assistance" data-mw-thread-id="h-Assistance"><span data-mw-comment-start="" id="h-Assistance"></span>Assistance<span data-mw-comment-end="h-Assistance"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=26" title="Edit section: Assistance"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Assistance","replies":[]}}--></div> <p>If you have a tricky SVG file with a problem not described, or can't quite figure out what the previous section was talking about, you can simply ask for assistance by <a href="/wiki/Special:NewSection/Wikipedia:SVG_help" title="Special:NewSection/Wikipedia:SVG help">posting a quick note hereafter</a> that outlines the problem, as well as providing links to the files that are exhibiting these problems. Don't forget to sign your name with four tilde symbols (~~~~) and an editor will attempt to reply here to help! </p><p>When you are happy that a request has been fulfilled, just leave a note so that the request can be archived later, as needed. </p><p>An alternative source of help is <a href="https://commons.wikimedia.org/wiki/Commons:Graphics_village_pump" class="extiw" title="commons:Commons:Graphics village pump">Commons:Graphics village pump</a>. </p> <div class="mw-heading mw-heading1"><h1 id="Current_requests" data-mw-thread-id="h-Current_requests-20241013003500"><span data-mw-comment-start="" id="h-Current_requests-20241013003500"></span>Current requests<span data-mw-comment-end="h-Current_requests-20241013003500"></span></h1><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=27" title="Edit section: Current requests"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238436933"> <table id="archivebox" role="presentation" class="ombox ombox-notice mbox-small" style="text-align: center; padding: 1em;"> <tbody><tr> <td style="padding:0.6em 0 0.25em;"> <div style="width:100%; overflow:hidden;"><span typeof="mw:File"><a href="/wiki/File:Replacement_filing_cabinet.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/en/thumb/2/2a/Replacement_filing_cabinet.svg/40px-Replacement_filing_cabinet.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/2/2a/Replacement_filing_cabinet.svg/60px-Replacement_filing_cabinet.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/2/2a/Replacement_filing_cabinet.svg/80px-Replacement_filing_cabinet.svg.png 2x" data-file-width="200" data-file-height="200"/></a></span><br/><b>Archives</b></div> </td></tr><tr> <td class="plainlinks"> </td></tr><tr><td class="plainlinks" style="padding:0px 10px; text-align:left;"> <div><ol><li><a href="/wiki/Wikipedia:SVG_help/Archive_1" title="Wikipedia:SVG help/Archive 1">April 2008 – July 2008</a></li><li><a href="/wiki/Wikipedia:SVG_help/Archive_2" title="Wikipedia:SVG help/Archive 2">July 2008 – February 2009</a></li><li><a href="/wiki/Wikipedia:SVG_help/Archive_3" title="Wikipedia:SVG help/Archive 3">February 2009 – May 2010</a></li><li><a href="/wiki/Wikipedia:SVG_help/Archive_4" title="Wikipedia:SVG help/Archive 4">May 2010 – November 2010</a></li><li><a href="/wiki/Wikipedia:SVG_help/Archive_5" title="Wikipedia:SVG help/Archive 5">February 2011 – January 2013</a></li><li><a href="/wiki/Wikipedia:SVG_help/Archive_6" title="Wikipedia:SVG help/Archive 6">January 2013 – September 2017</a></li><li><a href="/wiki/Wikipedia:SVG_help/Archive_7" title="Wikipedia:SVG help/Archive 7">October 2017 – February 2020</a></li><li><a href="/wiki/Wikipedia:SVG_help/Archive_8" title="Wikipedia:SVG help/Archive 8">February 2020 – October 2021</a></li><li><a href="/wiki/Wikipedia:SVG_help/Archive_9" title="Wikipedia:SVG help/Archive 9">October 2021 – July 2023</a></li><li><a href="/wiki/Wikipedia:SVG_help/Archive_10" title="Wikipedia:SVG help/Archive 10">July 2023 – present</a></li></ol></div> </td> </tr><tr><td style="padding-bottom:11px"><div class="mw-inputbox-centered" style=""><form name="searchbox" class="searchbox mw-inputbox-form" action="/wiki/Special:Search"><div class="cdx-text-input"><input class="mw-inputbox-input mw-searchInput searchboxInput cdx-text-input__input" name="search" placeholder="" size="22" dir="ltr"/></div><input type="hidden" value="Wikipedia:SVG help/" name="prefix"/><br/><input type="submit" name="fulltext" value="Search archives" class="cdx-button"/><input type="hidden" value="Search" name="fulltext"/></form></div> </td></tr><tr><td style="padding:0px 10px; font-size:11.9px;"> <hr/> This page has archives. Sections older than <b>30 days</b> may be automatically archived by <span class="nowraplinks"><a href="/wiki/User:Lowercase_sigmabot_III" title="User:Lowercase sigmabot III">Lowercase sigmabot III</a></span> when more than 4 sections are present.</td></tr> </tbody></table> <p><a href="/wiki/Special:NewSection/Wikipedia:SVG_help" title="Special:NewSection/Wikipedia:SVG help"><b>Create a new request</b></a> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Cmglee-20241013003500","type":"heading","level":0,"id":"h-rsvg_not_respecting_fill-opacity:0_in_style_tag-Current_requests-20241013003500","replies":["c-Cmglee-20241013003500-rsvg_not_respecting_fill-opacity:0_in_style_tag","c-Cmglee-20241025102000-rsvg_not_respecting_fill-opacity:0_in_style_tag"],"text":"rsvg not respecting fill-opacity:0 in style tag","linkableTitle":"rsvg not respecting fill-opacity:0 in style tag"}--><h2 id="rsvg_not_respecting_fill-opacity:0_in_style_tag" data-mw-thread-id="h-rsvg_not_respecting_fill-opacity:0_in_style_tag-Current_requests-20241013003500"><span data-mw-comment-start="" id="h-rsvg_not_respecting_fill-opacity:0_in_style_tag-Current_requests-20241013003500"></span>rsvg not respecting fill-opacity:0 in style tag<span data-mw-comment-end="h-rsvg_not_respecting_fill-opacity:0_in_style_tag-Current_requests-20241013003500"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=28" title="Edit section: rsvg not respecting fill-opacity:0 in style tag"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Cmglee-20241013003500","type":"heading","level":0,"id":"h-rsvg_not_respecting_fill-opacity:0_in_style_tag-Current_requests-20241013003500","replies":["c-Cmglee-20241013003500-rsvg_not_respecting_fill-opacity:0_in_style_tag","c-Cmglee-20241025102000-rsvg_not_respecting_fill-opacity:0_in_style_tag"]}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Cmglee-20241025102000-rsvg_not_respecting_fill-opacity:0_in_style_tag","timestamp":"20241025102000"}__--><!--__DTCOMMENTCOUNT__7__--><!--__DTAUTHORCOUNT__3__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Cmglee-20241013003500","type":"heading","level":0,"id":"h-rsvg_not_respecting_fill-opacity:0_in_style_tag-Current_requests-20241013003500","replies":["c-Cmglee-20241013003500-rsvg_not_respecting_fill-opacity:0_in_style_tag","c-Cmglee-20241025102000-rsvg_not_respecting_fill-opacity:0_in_style_tag"],"text":"rsvg not respecting fill-opacity:0 in style tag","linkableTitle":"rsvg not respecting fill-opacity:0 in style tag"}--></div></div></div> <span data-mw-comment-start="" id="c-Cmglee-20241013003500-rsvg_not_respecting_fill-opacity:0_in_style_tag"></span><figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Chord_intervals.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Chord_intervals.svg/330px-Chord_intervals.svg.png" decoding="async" width="330" height="289" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Chord_intervals.svg/495px-Chord_intervals.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Chord_intervals.svg/660px-Chord_intervals.svg.png 2x" data-file-width="512" data-file-height="448"/></a><figcaption>All note names are shown overlapping in the left and right columns, and the bottom row</figcaption></figure> <p>When <a class="external free" href="https://upload.wikimedia.org/wikipedia/commons/0/0a/Chord_intervals.svg">http://upload.wikimedia.org/wikipedia/commons/0/0a/Chord_intervals.svg</a> is opened in Firefox, Chrome or Edge, chords in the key of C are shown by default. Hovering over the grey buttons at the bottom changes the chords. The output from <a class="external free" href="http://svgcheck.toolforge.org">http://svgcheck.toolforge.org</a> concurs. </p><p>However, in the thumbnail here, all note names appear at the same time, even though <code>.active, .default:hover { fill-opacity:0; }</code> makes their opacities zero unless hovered over. </p><p>Would someone be able to look into this, please? </p><p>Thanks, <b><a href="/wiki/User:Cmglee" title="User:Cmglee">cmɢʟee</a></b>⎆<a href="/wiki/User_talk:Cmglee" title="User talk:Cmglee">τaʟκ</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:SVG_help#c-Cmglee-20241013003500-rsvg_not_respecting_fill-opacity:0_in_style_tag" class="ext-discussiontools-init-timestamplink">00:35, 13 October 2024 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Cmglee-20241013003500-rsvg_not_respecting_fill-opacity:0_in_style_tag"><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">reply</a><span class="ext-discussiontools-init-replylink-bracket">]</span><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241013003500","author":"Cmglee","type":"comment","level":1,"id":"c-Cmglee-20241013003500-rsvg_not_respecting_fill-opacity:0_in_style_tag","replies":["c-Redrose64-20241013084700-Cmglee-20241013003500","c-Aluxosm-20241013105000-Cmglee-20241013003500"],"displayName":"cm\u0262\u029fee"}}--></span><span data-mw-comment-end="c-Cmglee-20241013003500-rsvg_not_respecting_fill-opacity:0_in_style_tag"></span> </p> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Redrose64-20241013084700-Cmglee-20241013003500"></span>@<a href="/wiki/User:Cmglee" title="User:Cmglee">Cmglee</a>:</span> What you have displayed here is not an SVG but the <a href="/wiki/PNG" title="PNG">PNG</a> representation of an SVG, it has no concept of hover. --<a href="/wiki/User:Redrose64" title="User:Redrose64"><span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64</a> 🌹 (<a href="/wiki/User_talk:Redrose64" title="User talk:Redrose64">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:SVG_help#c-Redrose64-20241013084700-Cmglee-20241013003500" class="ext-discussiontools-init-timestamplink">08:47, 13 October 2024 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Redrose64-20241013084700-Cmglee-20241013003500"><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">reply</a><span class="ext-discussiontools-init-replylink-bracket">]</span><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241013084700","author":"Redrose64","type":"comment","level":2,"id":"c-Redrose64-20241013084700-Cmglee-20241013003500","replies":[]}}--></span><span data-mw-comment-end="c-Redrose64-20241013084700-Cmglee-20241013003500"></span></dd> <dd><span class="template-ping"><span data-mw-comment-start="" id="c-Aluxosm-20241013105000-Cmglee-20241013003500"></span>@<a href="/wiki/User:Cmglee" title="User:Cmglee">Cmglee</a>:</span> I think the problem is that Wikipedia converts the SVG to various sized PNGs for use in thumbnails. See <a class="mw-selflink-fragment" href="#Rendering_SVG_files">Wikipedia:SVG help#Rendering SVG files</a>. This long-standing issue was initially a fix for browsers that didn't support SVGs; it will hopefully be fixed at some point in the future! <a href="/wiki/User:Aluxosm" title="User:Aluxosm">Aluxosm</a> (<a href="/wiki/User_talk:Aluxosm" title="User talk:Aluxosm">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:SVG_help#c-Aluxosm-20241013105000-Cmglee-20241013003500" class="ext-discussiontools-init-timestamplink">10:50, 13 October 2024 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Aluxosm-20241013105000-Cmglee-20241013003500"><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">reply</a><span class="ext-discussiontools-init-replylink-bracket">]</span><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241013105000","author":"Aluxosm","type":"comment","level":2,"id":"c-Aluxosm-20241013105000-Cmglee-20241013003500","replies":["c-Cmglee-20241013194300-Aluxosm-20241013105000"]}}--></span><span data-mw-comment-end="c-Aluxosm-20241013105000-Cmglee-20241013003500"></span> <dl><dd><span data-mw-comment-start="" id="c-Cmglee-20241013194300-Aluxosm-20241013105000"></span>Thanks, <span class="template-ping">@<a href="/wiki/User:Redrose64" title="User:Redrose64">Redrose64</a>:</span> and <span class="template-ping">@<a href="/wiki/User:Aluxosm" title="User:Aluxosm">Aluxosm</a>:</span></dd> <dd>Having uploaded over 2000 SVG illustrations over 15 years (about 3 a week), I'm aware that <i>rsvg</i> rasterises SVG into PNG, which I think should not react to hover events.</dd> <dd>What I'm asking is why rsvg renders all the note names overlapping (note the black blobs) instead of only one showing in the left and right columns, and the bottom row, as all except that one have <i>class</i> set to <i>active</i> which has <i>fill-opacity:0</i> unless it also has a <i>hover</i> selector (<i>.active:hover</i>) Is it because the current rsvg triggers hover for all of them? SVG Check in toolforge does not have this behaviour.</dd> <dd>Thanks, <b><a href="/wiki/User:Cmglee" title="User:Cmglee">cmɢʟee</a></b>⎆<a href="/wiki/User_talk:Cmglee" title="User talk:Cmglee">τaʟκ</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:SVG_help#c-Cmglee-20241013194300-Aluxosm-20241013105000" class="ext-discussiontools-init-timestamplink">19:43, 13 October 2024 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Cmglee-20241013194300-Aluxosm-20241013105000"><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">reply</a><span class="ext-discussiontools-init-replylink-bracket">]</span><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241013194300","author":"Cmglee","type":"comment","level":3,"id":"c-Cmglee-20241013194300-Aluxosm-20241013105000","replies":["c-Redrose64-20241013204300-Cmglee-20241013194300"],"displayName":"cm\u0262\u029fee"}}--></span><span data-mw-comment-end="c-Cmglee-20241013194300-Aluxosm-20241013105000"></span> <dl><dd><span data-mw-comment-start="" id="c-Redrose64-20241013204300-Cmglee-20241013194300"></span>Some years ago, I determined that within style sheets (which we can only supply in the form of CSS rules enclosed inside <code class="nowrap" style=""><style type="text/css">...</style></code> tags), librsvg can only recognise tokens that are explicitly defined in either CSS Level 1 or SVG Version 1.1, and the <code>:hover</code> pseudo-class is not defined in either of these - it is first described in CSS Level 2. Now, user agents are instructed to skip a rule if any of its selectors is illegal, so effectively the style sheet is treated as if two rules were commented out: <div class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr"><pre><span></span><span class="p"><</span><span class="nt">style</span> <span class="na">type</span><span class="o">=</span><span class="s">"text/css"</span><span class="p">></span> <span class="nt">svg</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">font-family</span><span class="p">:</span><span class="s1">'Liberation Sans'</span><span class="p">,</span><span class="n">Helvetica</span><span class="p">,</span><span class="n">Arial</span><span class="p">,</span><span class="kc">sans-serif</span><span class="p">;</span><span class="w"> </span><span class="k">font-size</span><span class="p">:</span><span class="mi">16</span><span class="kt">px</span><span class="p">;</span><span class="w"> </span><span class="k">letter-spacing</span><span class="p">:</span><span class="mi">-1</span><span class="kt">px</span><span class="p">;</span><span class="w"> </span><span class="n">text-anchor</span><span class="p">:</span><span class="kc">middle</span><span class="p">;</span><span class="w"> </span><span class="k">fill</span><span class="p">:</span><span class="mh">#000</span><span class="p">;</span><span class="w"> </span><span class="k">pointer-events</span><span class="p">:</span><span class="kc">none</span><span class="p">;</span><span class="w"> </span><span class="p">}</span> <span class="p">.</span><span class="nc">trigger</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">pointer-events</span><span class="p">:</span><span class="kc">auto</span><span class="p">;</span><span class="w"> </span><span class="p">}</span> <span class="c">/* .active, .default:hover { fill-opacity:0; } */</span> <span class="c">/* .active:hover { fill-opacity:1; } */</span> <span class="p">.</span><span class="nc">interval</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">fill</span><span class="p">:</span><span class="kc">none</span><span class="p">;</span><span class="w"> </span><span class="k">stroke-width</span><span class="p">:</span><span class="mf">1.5</span><span class="p">;</span><span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p"></</span><span class="nt">style</span><span class="p">></span> </pre></div> so for elements belonging to the <code>active</code> class, the <code>fill-opacity</code> property will take its initial value, which is <code>1</code>. So all of that text is drawn in black, and it overlaps, giving the black blobs. --<a href="/wiki/User:Redrose64" title="User:Redrose64"><span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64</a> 🌹 (<a href="/wiki/User_talk:Redrose64" title="User talk:Redrose64">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:SVG_help#c-Redrose64-20241013204300-Cmglee-20241013194300" class="ext-discussiontools-init-timestamplink">20:43, 13 October 2024 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Redrose64-20241013204300-Cmglee-20241013194300"><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">reply</a><span class="ext-discussiontools-init-replylink-bracket">]</span><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241013204300","author":"Redrose64","type":"comment","level":4,"id":"c-Redrose64-20241013204300-Cmglee-20241013194300","replies":["c-Cmglee-20241014211200-Redrose64-20241013204300"]}}--></span><span data-mw-comment-end="c-Redrose64-20241013204300-Cmglee-20241013194300"></span> <dl><dd><span data-mw-comment-start="" id="c-Cmglee-20241014211200-Redrose64-20241013204300"></span>Thank you very much for your thorough explanation, <span class="template-ping">@<a href="/wiki/User:Redrose64" title="User:Redrose64">Redrose64</a>:</span> I'll see if I can work around it. Cheers, <b><a href="/wiki/User:Cmglee" title="User:Cmglee">cmɢʟee</a></b>⎆<a href="/wiki/User_talk:Cmglee" title="User talk:Cmglee">τaʟκ</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:SVG_help#c-Cmglee-20241014211200-Redrose64-20241013204300" class="ext-discussiontools-init-timestamplink">21:12, 14 October 2024 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Cmglee-20241014211200-Redrose64-20241013204300"><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">reply</a><span class="ext-discussiontools-init-replylink-bracket">]</span><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241014211200","author":"Cmglee","type":"comment","level":5,"id":"c-Cmglee-20241014211200-Redrose64-20241013204300","replies":[],"displayName":"cm\u0262\u029fee"}}--></span><span data-mw-comment-end="c-Cmglee-20241014211200-Redrose64-20241013204300"></span></dd></dl></dd></dl></dd></dl></dd></dl> <span data-mw-comment-start="" id="c-Cmglee-20241025102000-rsvg_not_respecting_fill-opacity:0_in_style_tag"></span><style data-mw-deduplicate="TemplateStyles:r1235781174">.mw-parser-output .hmbox-outer{margin-left:1em}.mw-parser-output .hmbox-inner{display:inline-block;color:var(--color-base,#202122);border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--background-color-interactive-subtle,#f8f9fa);margin-right:0.5em;padding:0.3em 0.5em}</style><div role="note" class="hmbox-outer resolved"><div class="hmbox-inner"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/20px-Yes_check.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/30px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/40px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600"/></span></span> Resolved</div></div> <p><b><a href="/wiki/User:Cmglee" title="User:Cmglee">cmɢʟee</a></b>⎆<a href="/wiki/User_talk:Cmglee" title="User talk:Cmglee">τaʟκ</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:SVG_help#c-Cmglee-20241025102000-rsvg_not_respecting_fill-opacity:0_in_style_tag" class="ext-discussiontools-init-timestamplink">10:20, 25 October 2024 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Cmglee-20241025102000-rsvg_not_respecting_fill-opacity:0_in_style_tag"><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">reply</a><span class="ext-discussiontools-init-replylink-bracket">]</span><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241025102000","author":"Cmglee","type":"comment","level":1,"id":"c-Cmglee-20241025102000-rsvg_not_respecting_fill-opacity:0_in_style_tag","replies":[],"displayName":"cm\u0262\u029fee"}}--></span><span data-mw-comment-end="c-Cmglee-20241025102000-rsvg_not_respecting_fill-opacity:0_in_style_tag"></span> </p><div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Cmglee-20241119232500","type":"heading","level":0,"id":"h-Transformed_masked_object_does_not_appear-Current_requests-20241119232500","replies":["c-Cmglee-20241119232500-Transformed_masked_object_does_not_appear"],"text":"Transformed masked object does not appear","linkableTitle":"Transformed masked object does not appear"}--><h2 id="Transformed_masked_object_does_not_appear" data-mw-thread-id="h-Transformed_masked_object_does_not_appear-Current_requests-20241119232500"><span data-mw-comment-start="" id="h-Transformed_masked_object_does_not_appear-Current_requests-20241119232500"></span>Transformed masked object does not appear<span data-mw-comment-end="h-Transformed_masked_object_does_not_appear-Current_requests-20241119232500"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:SVG_help&action=edit&section=29" title="Edit section: Transformed masked object does not appear"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Cmglee-20241119232500","type":"heading","level":0,"id":"h-Transformed_masked_object_does_not_appear-Current_requests-20241119232500","replies":["c-Cmglee-20241119232500-Transformed_masked_object_does_not_appear"]}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Cmglee-20241119232500-Transformed_masked_object_does_not_appear","timestamp":"20241119232500"}__--><!--__DTCOMMENTCOUNT__1__--><!--__DTAUTHORCOUNT__1__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Cmglee-20241119232500","type":"heading","level":0,"id":"h-Transformed_masked_object_does_not_appear-Current_requests-20241119232500","replies":["c-Cmglee-20241119232500-Transformed_masked_object_does_not_appear"],"text":"Transformed masked object does not appear","linkableTitle":"Transformed masked object does not appear"}--></div></div></div> <span data-mw-comment-start="" id="c-Cmglee-20241119232500-Transformed_masked_object_does_not_appear"></span><figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Mirage_principle.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/14/Mirage_principle.svg/220px-Mirage_principle.svg.png" decoding="async" width="220" height="165" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/14/Mirage_principle.svg/330px-Mirage_principle.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/14/Mirage_principle.svg/440px-Mirage_principle.svg.png 2x" data-file-width="512" data-file-height="384"/></a><figcaption>Comparison of superior and inferior mirages</figcaption></figure> <p>In this SVG, I applied a mask on a semi-transparent object and then translated, and also scaled it (to get the half-faded mirages). </p><p>It appears correctly in <a class="external free" href="http://svgcheck.toolforge.org/index.php">http://svgcheck.toolforge.org/index.php</a> , Firefox, Chrome and Edge but not in the rsvg thumbnail. </p><p>Is this a known issue? Could someone please suggeset a workaround? </p><p>Thanks, <b><a href="/wiki/User:Cmglee" title="User:Cmglee">cmɢʟee</a></b>⎆<a href="/wiki/User_talk:Cmglee" title="User talk:Cmglee">τaʟκ</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:SVG_help#c-Cmglee-20241119232500-Transformed_masked_object_does_not_appear" class="ext-discussiontools-init-timestamplink">23:25, 19 November 2024 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Cmglee-20241119232500-Transformed_masked_object_does_not_appear"><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">reply</a><span class="ext-discussiontools-init-replylink-bracket">]</span><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"20241119232500","author":"Cmglee","type":"comment","level":1,"id":"c-Cmglee-20241119232500-Transformed_masked_object_does_not_appear","replies":[],"displayName":"cm\u0262\u029fee"}}--></span><span data-mw-comment-end="c-Cmglee-20241119232500-Transformed_masked_object_does_not_appear"></span> </p> <!-- NewPP limit report Parsed by mw‐api‐ext.codfw.main‐75b4cd9cb5‐6mz59 Cached time: 20241126081937 Cache expiry: 864000 Reduced expiry: true Complications: [vary‐revision‐sha1, show‐toc] DiscussionTools time usage: 0.034 seconds CPU time usage: 0.338 seconds Real time usage: 0.431 seconds Preprocessor visited node count: 1762/1000000 Post‐expand include size: 25004/2097152 bytes Template argument size: 4052/2097152 bytes Highest expansion depth: 16/100 Expensive parser function count: 10/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 17447/5000000 bytes Lua time usage: 0.129/10.000 seconds Lua memory usage: 2379858/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 306.203 1 -total 39.23% 120.114 1 Template:Archive_box 29.01% 88.844 11 Template:Th/abp 13.65% 41.807 11 Template:HasTemplate 12.66% 38.772 1 Template:See_also 11.40% 34.904 1 Template:Skiptotoctalk 11.22% 34.347 1 User:RCraig09/Excel_to_XML_for_SVG 10.99% 33.656 9 Template:Tmpv 9.98% 30.573 1 Template:Mbox 9.15% 28.019 4 Template:Multiple_image --> <!-- Saved in parser cache with key enwiki:pcache:idhash:16440568-0!canonical and timestamp 20241126081941 and revision id 1259645966. Rendering was triggered because: edit-page --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&useformat=desktop" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Wikipedia:SVG_help&oldid=1259645966">https://en.wikipedia.org/w/index.php?title=Wikipedia:SVG_help&oldid=1259645966</a>"</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Wikipedia_image_help" title="Category:Wikipedia image help">Wikipedia image help</a></li><li><a href="/wiki/Category:Pages_using_multiple_image_with_auto_scaled_images" title="Category:Pages using multiple image with auto scaled images">Pages using multiple image with auto scaled images</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 26 November 2024, at 08:19<span class="anonymous-show"> (UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Wikipedia:SVG_help&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-5c59558b9d-x2g2p","wgBackendResponseTime":119,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-RCraig09-2021-02-19T23:41:00.000Z","type":"heading","level":0,"id":"h-General_suggestions-2021-02-19T23:41:00.000Z","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Browsers-General_suggestions","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Text_editors-General_suggestions","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Inkscape-General_suggestions","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-OpenOffice.org-General_suggestions","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-SVG_code_replacement_guide_(executing_replace_all_using_Nedit_regular_expression-OpenOffice.org","replies":[]}]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Microsoft_Powerpoint-General_suggestions","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Microsoft_Visio-General_suggestions","replies":[]},{"headingLevel":3,"name":"h-RCraig09-2021-02-19T23:41:00.000Z","type":"heading","level":0,"id":"h-Generating_SVG_charts_from_Microsoft_Excel-General_suggestions-2021-02-19T23:41:00.000Z","replies":[{"timestamp":"2021-02-19T23:41:00.000Z","author":"RCraig09","type":"comment","level":1,"id":"c-RCraig09-2021-02-19T23:41:00.000Z-Generating_SVG_charts_from_Microsoft_Excel","replies":[]}]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Text_guidance","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Use_text_over_paths-Text_guidance","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-font-family_property-Text_guidance","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-font-size_property-Text_guidance","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Background_colors-Text_guidance","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Testing_for_problems-Text_guidance","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Rendering_SVG_files","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-\u003Cmask\u003E_parameter_maskUnits=\"userSpaceOnUse\"-Rendering_SVG_files","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-parameter_stroke-dasharray-Rendering_SVG_files","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Use_href=_alone,_not_xlink:href=,_in_\u003Cuse_/\u003E_statements-Rendering_SVG_files","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-CSS_selectors_or_identifiers_must_start_with_a_letter_or_hyphen-Rendering_SVG_files","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Common_problems","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Misaligned_text-Common_problems","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-flowRoot_does_not_appear-Common_problems","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Missing_embedded_JPEG_images-Common_problems","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Further_issues-Common_problems","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Assistance","replies":[]},{"headingLevel":1,"name":"h-Cmglee-20241013003500","type":"heading","level":0,"id":"h-Current_requests-20241013003500","replies":[{"headingLevel":2,"name":"h-Cmglee-20241013003500","type":"heading","level":0,"id":"h-rsvg_not_respecting_fill-opacity:0_in_style_tag-Current_requests-20241013003500","replies":[{"timestamp":"20241013003500","author":"Cmglee","type":"comment","level":1,"id":"c-Cmglee-20241013003500-rsvg_not_respecting_fill-opacity:0_in_style_tag","replies":[{"timestamp":"20241013084700","author":"Redrose64","type":"comment","level":2,"id":"c-Redrose64-20241013084700-Cmglee-20241013003500","replies":[]},{"timestamp":"20241013105000","author":"Aluxosm","type":"comment","level":2,"id":"c-Aluxosm-20241013105000-Cmglee-20241013003500","replies":[{"timestamp":"20241013194300","author":"Cmglee","type":"comment","level":3,"id":"c-Cmglee-20241013194300-Aluxosm-20241013105000","replies":[{"timestamp":"20241013204300","author":"Redrose64","type":"comment","level":4,"id":"c-Redrose64-20241013204300-Cmglee-20241013194300","replies":[{"timestamp":"20241014211200","author":"Cmglee","type":"comment","level":5,"id":"c-Cmglee-20241014211200-Redrose64-20241013204300","replies":[],"displayName":"cmɢʟee"}]}],"displayName":"cmɢʟee"}]}],"displayName":"cmɢʟee"},{"timestamp":"20241025102000","author":"Cmglee","type":"comment","level":1,"id":"c-Cmglee-20241025102000-rsvg_not_respecting_fill-opacity:0_in_style_tag","replies":[],"displayName":"cmɢʟee"}]},{"headingLevel":2,"name":"h-Cmglee-20241119232500","type":"heading","level":0,"id":"h-Transformed_masked_object_does_not_appear-Current_requests-20241119232500","replies":[{"timestamp":"20241119232500","author":"Cmglee","type":"comment","level":1,"id":"c-Cmglee-20241119232500-Transformed_masked_object_does_not_appear","replies":[],"displayName":"cmɢʟee"}]}]}],"wgPageParseReport":{"discussiontools":{"limitreport-timeusage":"0.034"},"limitreport":{"cputime":"0.338","walltime":"0.431","ppvisitednodes":{"value":1762,"limit":1000000},"postexpandincludesize":{"value":25004,"limit":2097152},"templateargumentsize":{"value":4052,"limit":2097152},"expansiondepth":{"value":16,"limit":100},"expensivefunctioncount":{"value":10,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":17447,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 306.203 1 -total"," 39.23% 120.114 1 Template:Archive_box"," 29.01% 88.844 11 Template:Th/abp"," 13.65% 41.807 11 Template:HasTemplate"," 12.66% 38.772 1 Template:See_also"," 11.40% 34.904 1 Template:Skiptotoctalk"," 11.22% 34.347 1 User:RCraig09/Excel_to_XML_for_SVG"," 10.99% 33.656 9 Template:Tmpv"," 9.98% 30.573 1 Template:Mbox"," 9.15% 28.019 4 Template:Multiple_image"]},"scribunto":{"limitreport-timeusage":{"value":"0.129","limit":"10.000"},"limitreport-memusage":{"value":2379858,"limit":52428800}},"cachereport":{"origin":"mw-api-ext.codfw.main-75b4cd9cb5-6mz59","timestamp":"20241126081937","ttl":864000,"transientcontent":true}}});});</script> </body> </html>