Commons:Graphics village pump

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

Community portal
Help desk Village pump
Administrators' noticeboard
vandalismuser problemsblocks and protections

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 Feb Mar Apr May Jul Aug Sep
Topic-specific archives

The XML in the uploaded file could not be parsed[edit]

The XML in the uploaded file could not be parsed. 13 MB svg file edited with inkscape. I get this message when it try to upload any uploader i used. Thank you. The base file is jpg file and i converted it to png in photoshop and then used it with no problem in Inkscape. Then used PNG original wihout jpg to png and i get the same message. MaryroseB54 (talk) 16:31, 21 July 2016 (UTC)

Does this SVG file contain a large embedded bitmap (raster) image? That's kind of discouraged on Commons... AnonMoos (talk) 13:37, 22 July 2016 (UTC)
No, as i said i used the png file for the background the 2nd time i tried it. Maybe i should give up. MaryroseB54 (talk) 14:08, 22 July 2016 (UTC)
Sorry and yes, give this up, this is absolutely an overkill for SVG. The source (JPG) image itself has an huge size view-warning and this is the most effective file format for pixel-image if large amount of details. The processing power and memory requirements correlates almost exponentially to the SVG filesize. The only way is to dramatically reduce the filesize (very likely also the resolution) of this background. PS: I would suggest to take the PNG and reduce the dimension by factor 10 and an color-depth of maximum 8bit or lower. User: Perhelion 21:08, 22 July 2016 (UTC)
thanks MaryroseB54 (talk) 22:18, 22 July 2016 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Offnfopt(talk) 21:22, 10 September 2016 (UTC)

Uploading alternate file format for maps[edit]

I uploaded a lot of maps in .png format, and would now like to replace them with .svg versions, as this is the preferred format in wikipedia for maps. However, I'm not able to upload the .svg versions of those same maps as an updated version of the .png. It can't replace the png file with a .svg file.

Is it alright to upload a separate .svg version? How should I go about getting the .svg version on wikimedia commons. I'm afraid if I did upload a separate version, it'd get taken down as a duplicate. Redtitan (talk) 07:56, 9 August 2016 (UTC)

I'm seeing examples of duplicate file formats used, but with "SVG version" added in the title, so that seems like a workable solution. Let me know if that's not the case and there's a better way to go about this. Redtitan (talk) 09:13, 9 August 2016 (UTC)
There is no need to add "SVG version" in the title (compare Category:Vector version available). You can not overwrite files with other fileformat (this would be an strong error). PS: Good to hear you do upload now SVG. User: Perhelion 12:09, 9 August 2016 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Offnfopt(talk) 21:22, 10 September 2016 (UTC)

Help need with an svg map[edit]

Comuni Italia senza confini.svg


I have created this svg map of italian comuni (cities) and I uploaded it on commons. The upload was successfull and the map is seeable in a wiki page, but when passing to the original source, problems arise. I then tried with another version not processed with SVGcleaner but there are still problems even if different. I have done the test Markup Validation Service and both failed with one error but I am a beginner and I do not know how to correct the error. Can anyone help me?

Thank you, --Thern (talk) 16:54, 19 August 2016 (UTC)

Hi again,
I tried to correct the error of the second upload version and now the validator says it is ok but the original source has still the problem (it does not zoom) and maybe it is a problem of my map more than a source code error. Is it possible? If so, how can I fix it?
--Thern (talk) 17:02, 19 August 2016 (UTC)
Thern I'm not sure if I fully understood your problem. Your SVG has set height and width values so when you open the SVG it will display at that size. If I understood your problem correctly, then I think you want the height and width larger. I went ahead and increased the height and width values so when you click the SVG it will display larger. Offnfopt(talk) 03:36, 24 August 2016 (UTC)
Offnfopt Thank you for the answer, but it was not my problem. Actually I think I solved using another compressor instead of SVGcleaner and now when displayed as SVG, it is possibly to zoom in and out the map; with the previous version the map was fixed and zooming did not work (if you want, you can check the first 3 uploads to see what I mean). But again, thank you!
--Thern (talk) 08:02, 24 August 2016 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Offnfopt(talk) 21:23, 10 September 2016 (UTC)

SVG thumbs using different font[edit]

I just changed this file to use text elements instead of paths. I used Liberation Serif. The text looks correct when viewing the full-size version (it has serifs), but the preview on the file page and the version on plwiki don't have serifs. Anybody have any idea how to fix it? BMacZero (talk) 18:29, 23 August 2016 (UTC)

Looking at the markup it shows font-family="'LiberationSerif'" if you change this to font-family="Liberation Serif,serif" I believe it will get you fixed up. Though if you want the lettering to be a little stronger, I would recommend font-family="Granada,Liberation Serif,serif". The font rendering has changed not too long ago due to software upgrades and seems to me the font rendering seems skinnier than it was before, using Granada seems closer to how it used to render. Offnfopt(talk) 18:51, 23 August 2016 (UTC)
@Offnfopt: Thanks. I tried font-family="Granada,Liberation Serif,serif" but the issue still occurs. I'll wait for caches to clear and try just "Liberation Serif". Is there a better way to test things on the Wikimedia SVG renderer than repeatedly overwriting the file? BMacZero (talk) 21:58, 24 August 2016 (UTC)
BMacZero sorry for the late reply, I saw your post but somehow I missed the question at the end. There is the SVG Check Tool but unfortunately it is running on older versions of software, so it doesn't render 100% the same (most noticeable differences are with text rendering). You can also upload to File:Test.svg to test to see how a file will render for instances where the checker is not correct. Offnfopt(talk) 15:08, 8 September 2016 (UTC)

File:Mamar Shabatot YY.pdf[edit]

Mamar Shabatot YY.pdf

I don't know if it fixable. I can use crop tool to crop a page or part of a page from this file but can't see the pages in the file. Can someone fix it? -- Geagea (talk) 20:27, 24 August 2016 (UTC)

Bug report: English Wikipedia is not reading Commons file history correctly[edit]

If you look at versus, the file history from Commons is not being transcluded properly by English Wikipedia. The result is that English Wikipedia is not picking up that I have uploaded a newer photo (the government bureau at issue moved to a newer and nicer building) and is applying the wrong aspect ratio from the old image to the current one. As should be obvious, the reason why the old aspect ratio cannot be used is that the full name of the bureau (including its parent department ) is too long and this time, the bureau opted to put all that information next to its entrance instead of immediately above it. --Coolcaesar (talk) 19:41, 7 September 2016 (UTC)

I did a purge and seems sorted now. Offnfopt(talk) 20:17, 7 September 2016 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Offnfopt(talk) 21:24, 10 September 2016 (UTC)

svg file appears as black rectangle[edit]

Hello, I've uploaded File:South China Sea Islands.svg which is ok when I check the original file, but the png rendering turns it into a black rectangle. Can I do something to avoid that? Thanks in advance, Michelet-密是力 (talk) 10:16, 18 September 2016 (UTC)

The black rendering was caused because the SVG contained flow elements. The repository generates PNG images from the SVG files using a piece of software called RSVG. RSVG does not support flow elements so it caused it to render improperly (i.e. the black). I've removed the flow elements and ran the SVG file through the scour script to remove some of the unneeded attributes from the SVG. I also made some minor changes to the markup to make sure the SVG was valid. If you could check the image to make sure no problems with the image occurred by the changes I made. Offnfopt(talk) 11:02, 18 September 2016 (UTC)
Splendid result, User:Offnfopt, thanks a lot, you obviously found what the problem was.
Now... I will probably update the map or draw others similar, and I don't want to bother you with every version.
  • By checking the old version through validator I can indeed see that a "flowRoot " or "flowRegion" is reported as an error: is that how the problem can be located?
  • What is exactly a "flow element" and (more to the point) how could I remove it myself?
  • How (if possible) can I avoid creating such flow element when using Inkscape?
Thanks again for your great expertise, I hope I'll be able to fix the problem myself in the future. Michelet-密是力 (talk) 14:34, 19 September 2016 (UTC)
Thanks a lot - Copying the memo on my page for future use. Michelet-密是力 (talk) 15:56, 19 September 2016 (UTC)

SVG 2 new features[edit]

This link was sent to me, figured I'd share with those here who might be interested in some of the SVG 2 markup changes. Offnfopt(talk) 09:07, 26 September 2016 (UTC)