Commons:Graphics village pump
This Graphics village pump aims to be technical support forum for all the local Labs, graphists (graphic artists), and volunteers interested in graphic works, and is a page where graphists and users from all the Labs can talk about graphics, tutorials, graphic software, help to build new Graphic Labs, etc. Also for exchanging opinions, ideas, protocols, and ways of improvement.
See also: Graphics abilities page | Graphic Tool | Project Insignia | Stroke Order Project | Current requests/discussions
To have the opinion of graphists check
| Illustration Workshop | Map Workshop | Photography Workshop | Video and Sound Workshop |
| Monthly archives | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 | – | – | – | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| 2008 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| 2009 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| 2010 | Jan | Feb | – | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| 2011 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | – | Dec |
| 2012 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| 2013 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | – | Dec |
| 2014 | Jan | Feb | Mar | Apr | May | – | Jul | Aug | Sep | Oct | Nov | Dec |
| 2015 | Jan | – | Mar | Apr | May | Jun | Jul | – | Sep | Oct | Nov | Dec |
| 2016 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | – | Nov | Dec |
| 2017 | – | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| 2018 | Jan | Feb | Mar | – | May | Jun | Jul | Aug | Sep | – | Nov | Dec |
| 2019 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | – | Nov | Dec |
| 2020 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | – | – | – |
| 2021 | – | – | Mar | Apr | – | Jun | Jul | Aug | Sep | – | – | – |
| 2022 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| 2023 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| Topic-specific archives | ||||||||||||
Issues with E-road shields (Tabliczka set)
[edit]The text of the E-road shields that use the "Tabliczka" format have suddenly become offset to the left: they used to be centred until recently. I wonder what is causing the error, and I also ask who has time to correct the alignment of all 263 shields in the set? (I am currently busy on other parts of Wikipedia) Best, --Minoa (talk) 02:51, 30 July 2024 (UTC)
- @Minoa: Apparently the SVG renderer doesn't position non-uniformly scaled text correctly. I.e. there is a
transform="scale(0.907522,1.101902)"attribute in the<text>node and removing it makes the text render in the same location as in Inkscape or in the browser. - I don't remember whether this is a known bug and I don't see an elegant way to fix this. If we simply move the text to the right, it'll be too far to the right once the bug is fixed. If we do remove the transform and adjust the position, the characters will have a less narrow shape. Converting the text to paths would solve the rendering issue, but it's just not elegant. TilmannR (talk) 15:41, 30 July 2024 (UTC)
- The svg code could be greatly shortened to basic rectangle and text elements, avoiding the sodipodi and other declarations and complications that Inkscape introduced. But with 263 member files in this category, avoiding the rendering problem would be a grueling task. I'd be willing to do a prototype/model file for someone with more time and patience, though I'm not sure which font I should use in place of the disfavored fond-family, Arial. You might also seek advice at WP:SVG help] at en.WP. RCraig09 (talk) 16:47, 30 July 2024 (UTC)
- For the record, I tried to reduce the size of the file and successfully validate the SVG code at File:Tabliczka E75.svg and File:Tabliczka E951.svg, but it appears that rsvg is scaling the text towards the left despite the
text-anchor="middle"instruction. While it may be tempting to suggest modifying the view-box to have (0,0) at the middle, such a workaround is not possible for something like File:Integral image application example.svg. --Minoa (talk) 08:22, 31 July 2024 (UTC)
- For the record, I tried to reduce the size of the file and successfully validate the SVG code at File:Tabliczka E75.svg and File:Tabliczka E951.svg, but it appears that rsvg is scaling the text towards the left despite the
- I believe TilmannR has diagnosed the issue. I believe the mechanism is as follows. RSVG is asked to center the text. It calculates the width of the text without scaling. Say that is 400 pixels. It then takes 1/2 that value to compute the starting point; the starting point is then 200 pixels left of the anchor point. Then it paints the text, but the scaling is applied while painting. If the scale factor is 0.9, then the text will be 360 pixels wide. The text will appear shifted to the left by 20 pixels. (If the scaling is 1.1, then the text would appear shifted to the right.)
- It is a bug in the renderer, so I would ask WMF to fix the renderer rather than tweak the SVG. Fix stuff where it is broken. One check would be whether this bug is present in the most recent version of RSVG.
- If the SVG is worked around, I suspect using an x scale factor of 1.0 would avoid the bug; the y scale factor could be different from unity.
- Glrx (talk) 14:58, 31 July 2024 (UTC)
- x scale > 1, y scale = 1 does shift to the right. x scale = 1, y scale > 1 does not do as I expect (shifts to the left!).
- Glrx (talk) 15:32, 31 July 2024 (UTC)
I wish to ask if there is already a Phabricator report for this issue? --Minoa (talk) 15:36, 31 July 2024 (UTC)
- User:JoKalliauer diagnosed this problem in Phab:T370044. Glrx (talk) 17:14, 31 July 2024 (UTC)
- See also: https://gitlab.gnome.org/GNOME/librsvg/-/issues/1109 (titled: transform of Text in Pattern with text-anchor="middle" not centered). I hope that they will correct the issue soon because I have a plan to compact and validate the SVGs in the Tabliczka set. --Minoa (talk) 09:24, 4 August 2024 (UTC)
- For the record, I have marked this topic as active (using {{DNAU}}) until the issue is fixed. The impact of the bug is substantial, because my plan to upload optimised SVG E-road shields has been postponed until I know for sure how the Wikimedia Commons will render them. --Minoa (talk) 07:41, 24 August 2024 (UTC)
- @Minoa: Support for condensed fonts is mixed, but I got a reasonable result with
<text style="font-size:84px;font-weight:bold;font-stretch:condensed;text-align:center;text-anchor:middle;fill:#ffffff;font-family:sans-serif" x="105" y="95"><tspan>E002</tspan></text>
- See File:Test.svg 2024-08-24 15:45
- Glrx (talk) 15:56, 24 August 2024 (UTC)
- @Minoa: Support for condensed fonts is mixed, but I got a reasonable result with
- For the record, I have marked this topic as active (using {{DNAU}}) until the issue is fixed. The impact of the bug is substantial, because my plan to upload optimised SVG E-road shields has been postponed until I know for sure how the Wikimedia Commons will render them. --Minoa (talk) 07:41, 24 August 2024 (UTC)
- See also: https://gitlab.gnome.org/GNOME/librsvg/-/issues/1109 (titled: transform of Text in Pattern with text-anchor="middle" not centered). I hope that they will correct the issue soon because I have a plan to compact and validate the SVGs in the Tabliczka set. --Minoa (talk) 09:24, 4 August 2024 (UTC)
- Note: Similar issues have been reported on
- http://en.wikipedia.org/w/index.php?title=Wikipedia:SVG_help&diff=prev&oldid=1232861961
- http://commons.wikimedia.org/w/index.php?title=User_talk%3ACmglee&diff=905204964
- Gnome says this issue is fixed in librsvg 2.59.2. Glrx (talk) 20:51, 18 September 2025 (UTC)
- Understood: I am keeping an eye on the issue and will clear the topic for archiving once the fixes are visible on the Commons. --Minoa (talk) 20:54, 18 September 2025 (UTC)
This portrait is used in an article. Shouldn't this be a png or jpg? Thanks for your time. Geoffroi 00:33, 30 October 2025 (UTC)
Please see en:File talk:Ambox clock.svg#Clock hands do not make sense for a discussion that may interest this wiki as well. FaviFake (talk) 05:13, 4 November 2025 (UTC)
Do I need to create separate file for SVG image which was cleaned (by hands)?
[edit]Sorry didn't notice firstly that there is specific subpage for questions related to graphics and svg. So here is a link to question in main page of village pump
Basically the summary is: Do I need to create separate file for SVG image which was cleaned (by hands)? But please look at that link if want to answer because questions are much deeper and btw deeply relate to svg itself DustDFG (talk) 06:42, 12 November 2025 (UTC)
New version of an SVG-file - how to upload it?
[edit]I've translated the labels in a svg-graphic into German. How do I handle the new file? What information do I need to upload it with, and how can I ensure it's linked to the original file? (The file is: BrnBld_BeringToFram.svg). Mistermeyer (talk) 15:11, 23 November 2025 (UTC)
- Go to file:BrnBld_BeringToFram.svg, then under the "File history" section at the bottom you will see a link for "Upload a new version of this file". You will be taken to a page with a "Browse" button in the "Source file" section to find the new image file on your computer. Find the file, upload it, put in what you changed between the extant version and your new file in the "File description" area, then hit "Upload file" at the bottom. VanIsaac (en.wiki) 16:40, 23 November 2025 (UTC)
- Do not follow this advice if your file only has German labels.
- The simplest method is to use https://svgtranslate.toolforge.org/File:BrnBld_BeringToFram.svg and translate the labels to German again.
- Alternatively, upload your German translation to BrnBld_BeringToFram_de.svg. You must link back to the original file and follow the CC-BY-SA 3.0 license terms crediting Brn-Bld.
- Glrx (talk) 20:17, 23 November 2025 (UTC)
Alternatives to {{Show SVG}} content parameter for rendering from existing file?
[edit]Just embedding with [[File:<filname>.svg]] doesn't render animated svg files correctly. So there is Template:Show SVG which has parameter content to render svg. As far as I know it is the only way to show animated SVG but it requires using content parameter (which is just copying of content from actual file). Is there a way to embed existing svg file? DustDFG (talk) 20:00, 23 November 2025 (UTC)
Semantics of {{ToSVG}}, {{SVGA}}?
[edit]As I understand semantics of these templates is that they just mark files which just could (as even said in template itself) be recreated using svg. As I understand it is just "categorization". If I understand correctly it doesn't demand uploaders of the image to go and create svg version. Or it demands?
I have a conversation with a user https://commons.wikimedia.org/wiki/User_talk:Petrus3743#SVG_supports_animation and so I was asked to remove {{SVGA}} template from their files. So I am asking if it is a correct request or not? DustDFG (talk) 07:38, 24 November 2025 (UTC)