Commons:Graphics village pump

From Wikimedia Commons, the free media repository
Jump to: navigation, search


Community portal
introduction
Help desk
uploading
Village pump
copyrightproposals
Administrators' noticeboard
vandalismuser problemsblocks and protections
Shortcut
COM:GVP

Graphics community: Graphic Lab · Graphics Village Pump · Picture Requests · Photography Critiques

color palette logo Welcome to the Graphics village pump!

A village pump

Hello and Welcome to this Graphics village pump of Commons. This Graphics village pump aims to provide help and information about the several Graphic Labs spread in the Wikipedias, and to be the technical support forum for all the local Labs, graphists (graphic artists), and users 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: Other graphic community pages (list on top) | Graphics abilities page | Graphic Tool | Project Insignia | Stroke Order Project | Current requests/discussions

Commons discussion pages (index)


Graphics village pump archives
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 Mar
Topic-specific archives



Trouble with SVG map of Oslo Metro[edit]

A (broken) map of the Oslo Metro

This is a map of the Oslo Metro system that is intended to be used in the following articles: no:T-banen i Oslo, en:Oslo Metro

However, the preview doesn't show as expected. It shows a very reduced/broken rendition of the original SVG file (created in Inkscape).

I've tried to "clean up" the image as much as possible, removing Inkscape specific properties, flattened the image, converted all text into paths etc. But still the preview doesn't render as expected. Is there anyone who can help me out on this? Arntjay (talk) 14:41, 27 March 2016 (UTC)

Looking at the file, I noticed that there were a lot of "linear gradient" elements which were not in fact gradients at all, since they only have one color specified. The strangest of the non-gradient gradients was the one named "Skygge", so I removed references to it, and now the file seems to work... AnonMoos (talk) 21:51, 27 March 2016 (UTC)

Pictogram voting keep.svg Fixed: It has been fixed now. Thanks for the help! Arntjay (talk) 09:44, 2 April 2016 (UTC)

Problem rendering SVG map (Size problem?)[edit]

Asia Minor ca 842 AD-V3DisDeImpSHPSimpl.svg

I just uploaded this map but try as I may I cannot make it render in either Commons or Wikipedia. I tried several options in Inkscape to save it as a smaller file (it seems it does render if the file is smaller than 10M) but they break the map (I tried plain SVG and Optimized SVG with several parameter combinations). Would anyone know how I could save the file (the good version is the first one I uploaded) so that Commons and the Wikipedias show it? Thank you in advance.--Rowanwindwhistler (talk) 20:47, 30 March 2016 (UTC)

Loading generated PNG gives an odd error. --Menner (talk) 19:01, 31 March 2016 (UTC)
Do you mean there may be something wrong within the SVG file structure and the problem may not be just the size of the file?--Rowanwindwhistler (talk) 07:15, 1 April 2016 (UTC)
Today I've tried the file on Ubuntu 15.10 with librsvg v2.40.10 and it rendered well. I think your problem comes from the SVG/XML spam filter from Wikimedia that fails with the size of the file. -- Menner (talk) 13:21, 2 April 2016 (UTC)
Yes I guessed that already. I would compress this map again, as we can see on the second upload it has an thumb, so you were not patient enough for waited at generating this huge file. User: Perhelion 13:48, 2 April 2016 (UTC)
I am not sure I fully understand the last remark but let me clarify the subsequent uploads come from different attempts at reducing the file size made by using different saving options (optimized, plain...) within Inkscape. I think the versions that succeed in creating a thumbnail are the ones under 10M and the ones that do not are the ones above that limit (I may be wrong, but that seems to be the rule somehow). Unfortunately, all those attempts failed because they mangle the map, even if they succeeded in reducing its size. The goal here is to reduce the size loosing as little detail as possible. Is that feasible? Is there any recommended tool for this kind of problem?--Rowanwindwhistler (talk) 13:59, 2 April 2016 (UTC)
Seems work, and the thumb comes very fast. I used "SVG Cleaner" which is very fast and good same time. Greetings PS: I used a low compression (lower I do never using here, but you can compare if any detail is loss, we can compress again) PPS: SVG version="1.2" is not really supported. User: Perhelion 14:17, 2 April 2016 (UTC)
As I see now, another way to compress would be to cut of the great material outside of the viewBox!? This would save around over 1 MB without any detail loss. User: Perhelion 14:41, 2 April 2016 (UTC)
Thank you for trying but, as you can see in the following links, the map gets modified by whatever SVG cleaner is doing. Here you can see a screenshot of the original map: it has shaded relief (a layer called "Sombreado" in the original SVG file) and the topographic layers have no stroke colour. In the generated thumbnail (as well as in the versions I tried to generate, see here) the shaded relief is gone and each topographic object has a dark stroke line around it. Though I could indeed try to remove some of the shapes lying outside the map frame (they are there because otherwise the topographic layers get warped when the map is generated), it would be nice if there were a way to reduce the file size while keeping the look of the map intact (i. e. keeping the shaded relief in place and the layers with the same colour definitions as the original file). Thank you!--Rowanwindwhistler (talk) 19:14, 2 April 2016 (UTC)
Just wondering, could it be my problem is basically this one? If so, as I am not at all familiar with Phabricator, is there a place whether I can check whether the problem has already a fix and, if so, when it is to be deployed? Thanks.--Rowanwindwhistler (talk) 14:17, 3 April 2016 (UTC)
@Rowanwindwhistler ✓ Done An SVG should rarely over 10MB, so I can't give an hint (most of my SVG are under 100kB). User: Perhelion 18:57, 8 April 2016 (UTC)
Many thanks, it does look good now.--Rowanwindwhistler (talk) 19:46, 10 April 2016 (UTC)

Two SVGs from enwiki[edit]

Jumpow recently have transferred from enwiki two images:

Both of them have something wrong in SVG code, and images could not be displayed. However, all works fine in enwiki: en:File:Divisor-summatory.svg, en:File:Divisor-summatory-big.svg. Could anyone help with this issue? bezik (talk) 10:11, 3 April 2016 (UTC)

Fixed. The required namespace definition xmlns="http://www.w3.org/2000/svg" was missing from the <svg> root element in both files. SiBr4 (talk) 10:30, 3 April 2016 (UTC)
Smiley.svg Thank you bezik (talk) 10:42, 3 April 2016 (UTC)

Font problem in SVG[edit]

The text here seems scrambled.

The text in this SVG file seems scrambled, possibly because of a wrong font. Can anyone here help fix this? Thanks, -- Daniel Mietchen (talk) 03:05, 8 April 2016 (UTC)

Reworking the SVG. -- Sameboat - 同舟 (talk · contri.) 03:56, 8 April 2016 (UTC)
Pictogram voting keep.svg Fixed. All issues with libRSVG encountered in the previous version:
  • Bad support of percentage value for width and height.
  • Scaling the text always scrambles it.
  • No support for multiple values for position parameter, e.g. y -- Sameboat - 同舟 (talk · contri.) 04:58, 8 April 2016 (UTC)
Thanks, Sameboat - 同舟 — this looks good on the file page now, but still not on the thumbnail embedded here. Can you help make the Phabricator ticket more useful? -- Daniel Mietchen (talk) 10:50, 8 April 2016 (UTC)
OK, the display now works fine for me here after bypassing my cache. I will leave a note over at Phabricator — your comments there would also be most welcome. -- Daniel Mietchen (talk) 10:58, 8 April 2016 (UTC)

Mistakes[edit]

Hello. File:Diagram Jonesa dla samogłosek szwedzkich.png contains two errors - the vowel ʉː is transcribed with a weird symbol (similar to ɯː, but slightly different), whereas the vowel ʊ is incorrectly shown as if it were long ʊː (it's not - it is the short counterpart of the long vowel uː). Please change that (ɯː -> ʉː , ʊː -> ʊ), I tried and failed - it's hard to do.

The same applies to File:Czytanie.png. Apart from what I've just said (ɯː -> ʉː , ʊː -> ʊ), the symbol ʃ̴ that appears in the top left corner also should be changed (to ɧ), which is the standard transcription of that consonant. 89.72.244.110 15:42, 10 April 2016 (UTC)

Reworking into a SVG. -- Sameboat - 同舟 (talk · contri.) 01:23, 11 April 2016 (UTC)
File:Diagram Jonesa dla samogłosek szwedzkich.svg ✓ Done but I am not familiar with Polish or Swedish, so you should proofread thoroughly. You can download and edit the SVG locally in any text editor (or User talk:Rillke/SVGedit.js). Just open the SVG source file (NOT the PNG render by Wikimedia) in separate browser tag and refresh the tag whenever you have edited and saved the SVG file for a quick preview. -- Sameboat - 同舟 (talk · contri.) 03:37, 11 April 2016 (UTC)
Great job, thanks. I'll have to create an account to do that (will do that in a minute), but I've just realized that File:Czytanie.png contains a few more mistakes (ʉː, ɵ, a should be red, not blue/white; dunno about the schwa - will check that later), so it's a good thing you didn't recreate it in SVG, because it'd need to be edited anyway. I'll try to recreate the czytanie file from your svg (save for the mistakes of course...). Thanks again man. 89.72.244.110 12:51, 11 April 2016 (UTC)

Dark png thumbs[edit]

Hi, I have noticed that png thumbs are too dark, see e.g. -> File:Ludwik_Brzozowski,_portrait.png or File:Bronisław Zaleski, portrait.png, but the same photos in their native resolution are good -> [1] or [2]. The firt photo I upload also on wikia an there are no such problem, see: wikia:wiersze:File:Ludwik_Brzozowski,_portrait.png. I don't know what the problem is? Electron   12:49, 13 April 2016 (UTC)

@Electron: Essentially, for pngs without a gAMA chunk, the version of imagemagick that we use makes an assumption of linear gamma instead of the more sane ~2.2. The workaround, until phab:T106516 is fixed, is to save the gAMA chunk in whatever software you are using or add a gAMA chunk using something like pngcrush. Storkk (talk) 13:10, 13 April 2016 (UTC)
I've uploaded a new version of File:Ludwik_Brzozowski,_portrait.png based off the second version (assuming that you brightened things further to attempt a workaround in the third version). The only changes were to convert to grayscale and save the gamma. Storkk (talk) 13:15, 13 April 2016 (UTC)
OK. I see. Thanks for the answer. Electron   20:09, 13 April 2016 (UTC)

Can someone help me create a montage for an article?[edit]

I would like to create two new montages for the info boxes of the articles on the colors red and blue, based on the article content. I did it some time ago for the article white, with the help of the Graphics workshop, but they have a new request form which doesn't seem to work for this kind of request. I have all the images from Commons, but just don't know who to send them to or how to stitch them together. Could anyone help me with this? Many thanks, SiefkinDR (talk) 16:04, 21 April 2016 (UTC)

If you are trying to create a montage for English Wikipedia, you don't need to stitch them. You can use a template, en:template:photomontage... exactly as it appears in, um... white. Storkk (talk) 16:09, 21 April 2016 (UTC)
Wow, that was FAST! Many thanks. SiefkinDR (talk) 16:15, 21 April 2016 (UTC)

Fonts in SVG?[edit]

Can I actually use anything else besides MS pack (Times New Roman etc.) and DejaVu series?

This preview sort of promises the possibility of using the "Charter" face, at least, but only the SVG browse works with "Charter", the PNG preview is generated with DejaVu Sans and the layout goes bad. Yury Tarasievich (talk) 19:30, 23 April 2016 (UTC)

Right, and the image in question is File:Italia 1494 topo-ru.svg. Yury Tarasievich (talk) 19:34, 23 April 2016 (UTC)

The link you posted isn't a "preview" but the source SVG which loads the font from your local font library instead of Wikimedia server. Check out the media description page or its full size PNG render from Wikimedia server. If you want similar preview off-line/locally, you must install the same font on your computer. Anyway the Bitstream/Charter type seemingly falls back to another font (possibly DejaVu Sans) which indicates that both types on Wikimedia do not contain Cyrillic glyphs. File:Italia 1494 topo-ru.svg uses "DejaVu Serif Condensed".-- Sameboat - 同舟 (talk · contri.) 01:55, 24 April 2016 (UTC)
All right, not a "preview", but a demo of what's possible; that was what I wanted. There are lots of those here, none authoritative (?).
Also, it seems additionally one has to account for specifics of "playing" the Inkscape SVG on the MediaWiki renderer. Okay, so I've switched to DejaVu family, which: 1) has Cyrillics for ages and 2) is ubiquitous. Also I've found the December 2015 post with the similar font problem, and by the advice given there I've rewrote the font definitions in SVG from form with apostrophes and commas (there's an Inkscape addon helping to do that).
However, 1) I can't guess the "proper" form of string for anything not Normal/Regular (e.g., DejaVu Serif Condensed Bold isn't okay) and 2) after such "tuning" the SVG doesn't show correctly in the Firefox (it did before); 3) curved text isn't displayed at all.
So, the question is rather: is there a SVG file with features and fonts, accounting for SVGs actually produced by Inkscape, and showing "do's" and "dont's" with regard to the actual MediaWiki renderer capabilities? Yury Tarasievich (talk) 05:02, 24 April 2016 (UTC)
And yes, I've seen the meta:SVG fonts. It says, e.g., that URW pack is from distro; now, URW pack has Cyrillics for, like, 10 years. However, Cyrillic string in "URW Bookman" is rendered with fallback (DejaVu Sans?). Liberation family also didn't work "out from the Inkscape". Yury Tarasievich (talk) 05:10, 24 April 2016 (UTC)
To answer some of your questions: There is no good and up-to-date explanation for font usage. Since other Problems are going to be fixed its will be the most painful issue with SVG soon. And actually URW Bookman isn't on font list. Please read carefully and look at https://noc.wikimedia.org/conf/fc-list. My recommendation is
My short POV is here.
What Inkscape version do you use? It shouldn't generate font-family:DejaVu Serif Condensed Bold but something like font-family:DejaVu;font-weight:Serif Condensed Bold. As far as I remember your formatting style was once present and has been abandoned.
Curved Text isn't supported at all by librsvg.
Apostrophes and comma should be no longer an issue. Please confirm.
--Menner (talk) 07:30, 24 April 2016 (UTC)
I believe I've read all the basics which are on Commons, and parts of the material seem to be mutually contradicting. E.g., there was a mention of `fc-list` content not 100% pertaining to the actual fonts used in the SVG renderer output.
Inkscape is at 0.91 r13725 here. Things like these definitely go into its SVG:
font-family:'DejaVu Sans Condensed';-inkscape-font-specification:'DejaVu Sans Condensed,';
font-family:'DejaVu Serif';-inkscape-font-specification:'DejaVu Serif, Semi-Condensed';
Maybe there's an option in preferences or something. However, if there's no curved text at all, all this is a non-issue w/r to the map creation. Yury Tarasievich (talk) 08:42, 24 April 2016 (UTC)
I think you inherited font types from an old SVG file.
When I create a new Text with Inkscape 0.91 I get font-stretch:semi-condensed;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Semi-Condensed'
Remove the "Condensed" from font name in Inkscape should solve the issue and make it "Semi-Condensed" in Shift+Cntrl+T dialog again.
Oddly adding "Condensed" to font name in Inkscape creates condensed fonts.
--Menner (talk) 13:38, 24 April 2016 (UTC)
How do you figure? Just now I've set the 'DejaVu Serif' face with 'Semi-Condensed' style on some elements I have added to somebody else's SVG. The SVG contains font-family:'DejaVu Serif';-inkscape-font-specification:'DejaVu Serif, Semi-Condensed';. And the SVG created from scratch with that same face+style contains the same fragment.
Is this info helping? Yury Tarasievich (talk) 13:56, 24 April 2016 (UTC)
I'm not sure whats the issue. Adding "Condensed" to a font name only works inside Inkscape. Making it "Semi-Condensed" using Shift+Cntrl+T dialog will work with librsvg, too. -- Menner (talk) 21:01, 24 April 2016 (UTC)
For information curved text on a map is possible with Inkscape by converting the text to a path. The steps are (1) draw a curved path. (2) type in the text. (3) From the Text menu select Put on Path. (4) From the Object menu select Group. (5) From the Path menu select Object to Path. The curved text will render when the map is uploaded. The only hitch is the curved path needs to be made invisible after step (3). This can be done either of two ways; by reducing the line width to zero pixels; or changing the line colour to the background colour. Summerdrought (talk) 04:17, 27 April 2016 (UTC)

Need some helpful person to fix an svg[edit]

I am *exceptionally* not good at making SVGs. Could someone fix Wikipedia page mover.svg? The source files are given in the description. --QEDK (talk) 11:47, 27 April 2016 (UTC)

I would guess it's due to the filter on the arrow ("filter3557"). If this could be replaced by a simple opacity statement, the problem might go away (but I don't feel too confident about doing it myself). AnonMoos (talk) 23:08, 27 April 2016 (UTC)
Meh, I'm sure I'm the least confident about doing anything here. --QEDK (talk) 12:30, 29 April 2016 (UTC)
What's the problem? You can't request for fix without stating what goes wrong. -- Sameboat - 同舟 (talk · contri.) 17:22, 29 April 2016 (UTC)
The arrow is cropped. --Menner (talk) 19:10, 29 April 2016 (UTC)
Fixed. -- Sameboat - 同舟 (talk · contri.) 07:07, 30 April 2016 (UTC)
The English Wikipedia owes you one. --QEDK (talk) 13:23, 30 April 2016 (UTC)