Commons:Graphics village pump/May 2009

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

Another SVG-PNG conversion bug[edit]

There is another bug in the SVG to PNG conversion done by the WikiCommons software. Check File:Cylindrical coordinates basic.svg. The coordinates of the point display correctly as "(ρ,φ,z)" when the SVG file is viewed directly in my browser (Firefox), but they are shown as "(,,)ρφz" in the PNG surrogate that got created automatically by WikiCommons (and is displayed in Wikipedia).
By the way, the marker rendering bug that I reported a couple of weeks ago is still unfixed. Apparently both defects are bugs in ImageMagick's "convert" tool. presumably "convert" uses an older version of the SVG rendering library. If WikiCommons is using "convert" to produce the PNG surrogates, please get an updated version, with the same rendering library that Firefox uses. All the best, --Jorge Stolfi (talk) 06:37, 1 May 2009 (UTC)

You could add the image to Category:Pictures showing a librsvg bug. /Pieter Kuiper (talk) 07:06, 1 May 2009 (UTC)
I fixed the file. The issue seemed to be with the fact that parts of the text were in <tspan> and parts weren't.˙ Pruneautalk 10:27, 1 May 2009 (UTC)

Maps and red dot markers[edit]

Hello from Australia

I am doing my family history which is mainly from England, which my Australian family does not know very well. I woulod like to down load some of the maps that are available of the different towns and villages in England ie Elham so that my family will have an idea of where different branches of the family were located. Is it possible to download the map and the red dot/marker which pin pin points the town/village/

Regards Carolyn -- 06:21, 2 May 2009 124.176.122.127

Article en:Elham uses the generic image File:Kent_outline_map_with_UK.png with the red dot placed dynamically over it; you can take a screenshot, and there would be no copyright problems, because the map image is PD, but the screenshot won't be high resolution... AnonMoos (talk) 06:49, 2 May 2009 (UTC)

Camera/scanner resolution test target[edit]

When using a digital camera to capture books, there's always a question of the equivalent scanner resolution (200 dpi, 300 dpi, ...). The solution to this problem is to also shoot a resolution test target, a single sheet with some patterns of known size. Such targets are well known to microfilm staff and professional photographers, but they can cost in the range of $100 to buy in single quantity! A good example of such a target is QA-77 from Applied Image Inc. Could someone please make a similar image in SVG/PDF that we could print on a regular printer? I don't want to encourage copyright violations. Do not copy the AIG image pattern. Create your own pattern. Some requirements: The paper should show measures in millimetres and inches, both at the image center (cross) and along the edges. In each quadrant there should be some line patterns that will blur just about 100 dpi, 150 dpi, 200 dpi, 250 dpi, 300 dpi, 400 dpi, 600 dpi, 800 dpi, 1200 dpi. Resolution should be mesured both horizontally and vertically. I do realize that printers have limited resolution and that they might even rescale a PDF image to fit the paper size. Each printed test target would need to be measured before it's used. Perhaps we can provide versions of the image that compensate for various degrees of rescaling. --LA2 (talk) 20:07, 3 May 2009 (UTC)

Googling for ISO-12233 turned up http://www.graphics.cornell.edu/~westin/misc/res-chart.html. Perhaps someone could ask the author if he'd be willing to release his SVG version under a free license. —Ilmari Karonen (talk) 10:10, 4 May 2009 (UTC)
I have asked by e-mail, but received no response yet. --LA2 (talk) 05:32, 6 May 2009 (UTC)
Note that for merely determining resolution, you can shoot anything of known size, even just a sheet of paper or a post-it note. Measure it with a ruler, measure its image, and divide to get dots per inch or cm. Dcoetzee (talk) 06:53, 14 May 2009 (UTC)
That works as long as the effective resolution is sensor-limited, but that's not always the case in practice. See e.g. [1] for more details. —Ilmari Karonen (talk) 15:28, 14 May 2009 (UTC)

User:Name/sketchbook.svg[edit]

I placed this post on Commons helpdesk, and it was suggested that this community would have already found a solution:

  • Is it possible to do this? I have a /sandbox in my user area where I experiment with text. I am often asked to do .svg files by other users. At times I want to show them what I am doing- so they can confirm that this is what they want. My solution would be to upload a file sketchbook.svg to be used to experiment with graphics. The 'Entirely my own work' upload script refuses to upload a file containing a '/'. Any ideas? ClemRutter (talk) 10:13, 28 April 2009 (UTC)

Opening a account on a third party site like Flickr rather defeats the point.--ClemRutter (talk) 12:40, 4 May 2009 (UTC)


You can't upload image files into your personal user space. What you can do is upload an image with a name like File:ClemRutter-Test.svg, mark it with Category:Test images and/or Category:User images, and upload all your test SVGs under that same name... AnonMoos (talk) 13:48, 4 May 2009 (UTC)


Project Wikipedia Awards[edit]

I suppose, everybody here knows barnstars and already received one from (or awarded one to...) another user (EN-WP). Probably you know, that it is common to propose new awards on the project talk page, so that the creations/designs can be discussed by the community. Unfortunately within the last 4-6 weeks less people have been involved in the decision-making process and the remaining users had the idea to invite further users to attend this discussion group. But Wikilawyers will claim that any significant posting to multiple user talk pages in order to solicit participation on an article or project talk page, are violating the Canvass-policy. Thats why I write this posting here on this page. If you are interested to participate, then please visit the Project Wikipedia Awards-page. Everyones opinion is in demand. With kind regards --Rectilinium (talk) 11:21, 5 May 2009 (UTC)

Our local (French) Wikipedia doesn't need the approval of the community, contributors can just go ahead and create whatever they want, since barnstars are not a really important thing. Why does the English Wikipedia need this? Diti the penguin 11:16, 7 May 2009 (UTC)
Hi Diti. It is not really a "must". It is an act of courtesy. There is one official barnstar for every subject (f.e. editor admin, graphic designer, music e.g.), which is listed on the barnstar-page. Some of these designs are probably not "beautiful", but people got used to certain barnstars. Sometimes people create a new one because they didnt know that there already is one or because they dont like the old barnstar. We think, that it is not ok, that one single user decides, whether an old design should be deleted and a new one added or not. Thats why there is a discussion. IMHO this is how WP should actually work... as it is a community-project :)... With kind regards --Rectilinium (talk) 16:30, 7 May 2009 (UTC)

File:Surf Girl01.jpg[edit]

Something is wrong with File:Surf Girl01.jpg (no preview/thumbnail). Can someone fix it? -- 85.177.190.59 06:13, 14 May 2009 (UTC)

Shows up fine for me - try refreshing, and try CTRL+F5 to refresh through your local cache. Dcoetzee (talk) 06:51, 14 May 2009 (UTC)
Well, I've the same problem. It isn't shown even after refresh. --Túrelio (talk) 06:53, 14 May 2009 (UTC)
When a JPEG is given dimensions ("2,700 × 1,804 pixels" etc.) but doesn't display, this is usually because it's CMYK instead of RGB... AnonMoos (talk) 14:09, 14 May 2009 (UTC)

Uploaded an RGB version with the same basic compression parameters (though CMYK to RGB conversion is inherently "lossy"); compare the jpegdump listings of the original and converted images:

surf_g~1.jpg:
  Approximate quality factor for qtable 0: 92 (scale 16.71, var 22.54)
  Approximate quality factor for qtable 1: 93 (scale 14.85, var 23.00)
  width 2700, height 1804  components 4
    id 1 horizontal sampling 1, vertical sampling 1, quantization table 0
    id 2 horizontal sampling 1, vertical sampling 1, quantization table 1
    id 3 horizontal sampling 1, vertical sampling 1, quantization table 1
    id 4 horizontal sampling 1, vertical sampling 1, quantization table 0

--

surf_g~2.jpg:
  Approximate quality factor for qtable 0: 92 (scale 16.71, var 22.54)
  Approximate quality factor for qtable 1: 93 (scale 14.85, var 23.00)
  width 2700, height 1804  components 3
    id 1 horizontal sampling 1, vertical sampling 1, quantization table 0
    id 2 horizontal sampling 1, vertical sampling 1, quantization table 1
    id 3 horizontal sampling 1, vertical sampling 1, quantization table 1

AnonMoos (talk) 16:43, 14 May 2009 (UTC)

How about tagging the picture with
Applications-graphics.svg This is a retouched picture, which means that it has been digitally altered from its original version. Modifications: Converted from CMYK to RGB. Modifications made by AnonMoos.

Azərbaycanca | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Zazaki | English | Esperanto | Español | Eesti | فارسی | Suomi | Français | Galego | עברית | Hrvatski | Magyar | Հայերեն | Italiano | Bahasa Indonesia | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Kurdî | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Polski | Português | Română | Русский | Slovenščina | Српски / srpski | Svenska | ไทย | Türkçe | Українська | Vèneto | 中文 | 中文(简体)‎ | 中文(繁體)‎ | 中文(台灣)‎ | +/−

? Teofilo (talk) 12:16, 24 May 2009 (UTC)

Please replace the old version[edit]

Because of the short history of my account, I couldn't replace the old file File:Right triangle abchpq.svg with my new version File:Right triangle abchpq(1).svg. If you're an administrator or you can do that because of other reasons, please help.--Flekstro (talk) 17:38, 16 May 2009 (UTC)

Why not keep both (just in case someone would prefer the older version) ? You can make the file replacement on Wikipedia by editing the Wikipedia page and inserting the new version there. Teofilo (talk) 12:03, 24 May 2009 (UTC)
In that case, I should have better selected a more meaningful name for the new version... However, if it isn't a problem, both of them could remain. These could be improved in the future for different puposes.--Flekstro (talk) 20:56, 28 May 2009 (UTC)

Uploading assistance requested[edit]

I tried converting a .jpg file to .svg using Inkscape, but I'm doing something wrong. The original is on Wikipedia File:Act graph.jpg, my two attempts are File:Actgraph.svg and File:Actgraph2.svg. I can see the file locally, but I see nothing after uploading. Someone suggested that I need the full url to the original file in the source, so I tried that in the second case. Can someone tell me what I'm doing wrong?SPhilbrick (talk) 12:21, 24 May 2009 (UTC)

When I download your file and try to open it with Inkscape, Inkscape displays "broken image". Firefox is unable to display it eigher (Firefox displays a blank screen). I am wondering if sodipodi:absref="C:\Documents and Settings\[...]\My Documents\My Pictures\Actgraph.jpg at the bottom of the source code does not mean that the file depends on the file on that location in your computer. Try moving the jpg file to another directory and perhaps the svg will fail from displaying on your computer too. Teofilo (talk) 12:47, 24 May 2009 (UTC)
Interesting, I moved it to another location, and now it opens to a blank screen. Not yet sure what's going on, but it's a start, thanks.SPhilbrick (talk) 13:11, 24 May 2009 (UTC)
Links to external files do not work at all in Wikimedia SVG renderer. SVG files are text files which you can open in a text editor; if you search for and find the string "<image" within the text of an SVG file, then there's a good chance that there will be problems... AnonMoos (talk) 02:22, 25 May 2009 (UTC)
According to fr:Wikipédia:Atelier graphique/Didacticiels graphiques/Création d'un diagramme SVG à partir de données, computing svg graphs by computing data can be done using a software called "gnumeric". Teofilo (talk) 13:05, 24 May 2009 (UTC)
Examining the source (using "View:- Page Source" in Firefox) shows that unfortunately you have not converted anything. All you have done is create an Inkscape .svg wrapper (mostly containing useless garbage that Inkscape puts in automatically) around a reference to an external .jpg image file (presumably) on your own hard drive.
This is probably not what you intended, but it may be worth going through the problem. Firstly, nobody can see the image because the .jpeg file has not been uploaded and because the url is wrong. Secondly although you can embed bitmap images inside an .svg file, there is of course, little point in doing so because it would simply disguise a .jpg as an .svg, which just confuses and is generally a bad thing.
Inkscape includes a tracing facility, which would seem to be what you need. I am not very familiar with Inkscape, but, depending on the nature of the image, I suspect you may find this results in a rather large file. There is a function, 'simplify' I think, which will reduce the size considerably, and to get rid of other rubbish in the file you could try http://codedread.com/scour/. Globbet (talk) 00:14, 27 May 2009 (UTC)
Thanks for the feedback. I've played around with Inkscape enough that I now see what I did wrong. Unfortunately, I'm not yet skilled enough to do the image correctly - I can do trace, but it isn't good enough - I'm working on some tutorials, but still a beginner. I see that the welcome message to me tells me what to do if I save a bad file - just upload a good one on top of it, but I'm not yet ready to create a good version - do you know how I go about deleting my botched version?Sphilbrick (talk) 01:40, 27 May 2009 (UTC)
You can simply tag it with {{speedy|reason for speedy deletion}} (where the reason is something along the lines of "file does not display"). Pruneautalk 09:07, 27 May 2009 (UTC)
Thanks, done Sphilbrick (talk) 00:30, 31 May 2009 (UTC)