Welcome to the Graphics 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
SVG image help
Hi could I have some help with svg. I have tried to create an svg image but looks wrong on some sites please see http://en.random-wikisaur.tk/skins/common/images/Random_Wikisaur_en.svg the text does not look great on all web browsers. Could I have some help to redo the image so the text does not look like you carnt read it or blurry. if you visit http://random-wikisaur.tk the image looks different to en.random-wikisaur.tk . 18.104.22.168 12:57, 1 March 2015 (UTC)
- Is it important to you that the text remains an editable text field? If you convert the text to a path, it will render consistently. Elaboratebreakfast (talk) 00:36, 7 March 2015 (UTC)
- Oh how would I fix it. 22.214.171.124 16:05, 9 March 2015 (UTC)
- Hi how can I fix it so it looks great everywhere and zooms in properly and inline. 126.96.36.199 18:26, 19 March 2015 (UTC)
Cropping white space around SVGs
What is the easiest way to automatically crop borders from an SVG? I created Pathway_to_genome.svg (latex to PDF via Inkscape to SVG) and it has a lot of white-space. U+003F? 12:07, 26 March 2015 (UTC)
- The fastest way is probably: File > Document Properties > Page > Page Size > Custom size, open the "Resize page to content..." section, define the margins to be a few pixels wide and press "Resize page to drawing or selection". If there are no invisible objects around your content, just don't select anything, if there are, select what should be included. — Julian H.✈ 13:15, 26 March 2015 (UTC)
- That didn't work for me; the resize didn't resize. Perhaps I should edit the SVG directly, though I never quite got my head around the viewBox element. U+003F? 13:44, 26 March 2015 (UTC)
- But this is the usual way. I see this question as one of the most, so I did open a report http://bugs.launchpad.net/inkscape/+bug/1440489 ↔ User: Perhelion (Commons: = crap?) 09:25, 5 April 2015 (UTC)
I create this file, but it appears a black areas, in the full size version and in the original doesn't appears, any idea? --Ezarateesteban 23:41, 30 March 2015 (UTC)
- Yes Help: SVG #Black rectangle (Flowed Text bug) ↔ User: Perhelion (Commons: = crap?) 00:03, 31 March 2015 (UTC)
Hey guys. I hope I am not annyoing with this request of mine. The point is, in 2011 I made a nice panorama of the city of Sarajevo in Bosnia that was stitched in Hugin and the result was a 371 mpix panorama. Ever since I uploaded that one, I wanted to surpass it. Which I did a short time ago with a new panorama of the town of Kadaň (528 mpix). I stitched the whole thing and uploaded it on commons - yet for some reason I can't get any thumbnail, or even have a chance to download it in smaller resolution or any resolution. The question I might have is not how big image can be uploaded so the server will be able to work with it... rather than "If I could do a 371 mpix, why can't I do 528 mpix and yes... theoretically... where is the limit. --Aktron (talk) 22:13, 31 March 2015 (UTC)
- Help:JPEG#Progressive JPEGs has the answer. —LX (talk, contribs) 22:59, 31 March 2015 (UTC)
I downloaded GIMP, but when I tried to start setup, I got the message that Windows cannot open it up because it does not know what program to use for this purpose. Can anyone suggest what program I should use to open up setup for GIMP? Sardaka (talk) 07:25, 8 April 2015 (UTC)
- You probably downloaded the ".torrent" file. Make sure you download "Gimp for Windows" from the GIMP download page and use the alternative download link unless you want to use BitTorrent. --Patrick87 (talk) 09:06, 8 April 2015 (UTC)
Problem rendering chemical structures
I recently upladed multiple biochemical structure of some compounds (, etc.) and most of them rendered with mistakes. They were produced and exported from ChemDraw 12. When I open them in inkscape, they show fine. I checked them with svgcheck, no problems found. How can I solve this issue?
Thank you for your kind advice. --Wesalius (talk) 07:59, 19 April 2015 (UTC)
- Haven't looked at those files, but if the subscripts are out of place, then it's probably because the program has different levels of <tspan> embedding side-by-side. For example, in <tspan>ABC<tspan>DEF</tspan></tspan>, "ABC" is inside one level, while "DEF" is inside two levels... AnonMoos (talk) 14:01, 19 April 2015 (UTC)
- @Wesalius: I manually fixed both of them using a text editor. If you have any others with problems feel free to post them and I'll try to get to them. Offnfopt(talk) 02:42, 24 April 2015 (UTC)
- @Offnfopt: If it is possible, could you explain the fix? I cant ask you to work on all of them, because there is just too many of them. Thank you very much! --Wesalius (talk) 05:28, 24 April 2015 (UTC)
- I just figured out I could just see the diff of the old and new file in text editor, so probably less explaining will be needed. --Wesalius (talk) 05:32, 24 April 2015 (UTC)
- @Wesalius: I think the bulk of the problems are from the font you're using. You're using Arial, but Wikipedia can't use Arial because of licensing issues so instead a font like "Bitstream Vera Sans" gets used. This font has different proportions than Arial so the text gets moved around. I think if you install this font and set it in your editor(s) ChemDraw or Inkscape I think you'll be able to see how the text alignment changes. When I edit these type of files I am on auto drive so I may have done more and not realized it, so if you still have problems just post and I'll try to respond.Offnfopt(talk) 06:30, 24 April 2015 (UTC)
- I wanted to add that SVG markup errors can also cause bad rendering, so you can check the SVG markup by using W3C validator, I use the "Validate by File Upload" often to check my files. I remembered that you had some id="" that had the same id and a id should have a unique name that is only used once in the file, I think this was a problem caused by the editor programs and nothing you did, but just something to look out for. Offnfopt(talk) 06:42, 24 April 2015 (UTC)
- OK thanks. I will return with more questions when I try to fix some of the files myself. I just wanted to check if you are using any sfotware/tool beside the validator that cleans up the SVGs for better readability, because when I compared your version and the old one produced by chemdraw, it contains less characters, has tags on sepaseparate lines etc. --Wesalius (talk) 08:02, 24 April 2015 (UTC)
- Actually "Arial" gets replaced with "Liberation Sans" by MediaWiki Servers, which has almost identical metrics. So no problem here!
However if I remember correctly (I fixed some similar files before) there are some weird transformations added to the labels, which the SVG renderer can't cope with and therefore shows the text shifted. If I remember correctly ungrouping the conflicting groups while simplifying/merging the transformations did the trick for me (Inkscape can do this automatically in many cases if editing SVG code seems inconvenient). --Patrick87 (talk) 08:58, 24 April 2015 (UTC)
- Wesalius, I just used Notepad++ to fix those, but I use search and replace regular expressions heavily to semi-automate redundant tasks.Offnfopt(talk) 15:12, 24 April 2015 (UTC)
- @Wesalius: Seems the problem is for some reason RSVG, the software wikipedia uses to convert SVG to PNG files (1) is a bit off when it scales text (2) when the text-anchor is set to use "end" RSVG doesn't seem to be able to handle this correctly. I went ahead and fixed a bunch of the files, but if I missed some now you know what the problem is. You can use text-anchor start or middle but you will have to re-adjust your text position after changing this. I normally set mine to middle, I didn't do this though and just changed as little as I could to get it working (for speeds sake) so I could go through the files faster. If you have problems with any of the files post here.Offnfopt(talk) 09:14, 25 April 2015 (UTC)
- Not fully, this is in relation due the
tspan elem. needs a dimension attr. from his parent element
text not from his neighbor
tspan (so a
x/y value on tspan is not supported with
text-anchor, it seems except of the last one). I opt. the file exemplary. ↔ User: Perhelion (Commons: = crap?) 11:20, 25 April 2015 (UTC)
- PS: I open a minor bug-report. ↔ User: Perhelion (Commons: = crap?) 21:07, 25 April 2015 (UTC)
- If this code is really from ChemDraw, I propose to mention this failure there, it is very unlikely code. So I mean librsvg should not be fixed there. ↔ User: Perhelion (Commons: = crap?) 11:15, 26 April 2015 (UTC)
- The formula was overwritten by User:Hattrich with an ionization (pixel/raster) version...? As far as I understand this is individually and not necessary. (Leyo what do you mean here? And I also mean the white background is not needed!?) ↔ User: Perhelion (Commons: = crap?) 16:23, 28 April 2015 (UTC)
To clarify. Me and Hattrich are working on a medschool project. Hattrich went on and deployed her own workaround for this render problem. Hattrich exports the compound as a jpeg from ChemDraw and than vectorizes it with Inkscape. Which I find ok, but Hattrich went on and changed the form of the aminoacids to ionized version and has overwritten the non-ionized forms. It is fixed now, Hattrich now uploads the ionized versions with a discriminator, so both forms are available.
I will probably upload now the last batch of compounds and hope for the best (or try to fix it if someone explains how in plain English) with the rendering problem. Thank you for your input so far! --Wesalius (talk) 18:41, 28 April 2015 (UTC)
- Okay I was only wondering, then go ahead. Thanks too. ↔ User: Perhelion (Commons: = crap?) 20:16, 28 April 2015 (UTC)
Example structure created as described
@Wesalius: Please use the settings as given in this table. If you send me an e-mail, I will send you the corresponding .cds file.
I get the best results, if I first save the structure as .eps. I then convert the .eps to .svg using Scribus. Just try it and you won't have rendering problems again. --Leyo 20:21, 28 April 2015 (UTC)
spurious text in SVG rendering
A en.wikipedia user pointed out that there was spurious text at the left of the diagram which is here: File:Call stack layout.svg. I looked at most of the canned PNG renderings, and sure enough, almost all have junk there (e.g. "ress" and "for"). But not all do: apparently  is ok, as is the rendering on the File: page itself. I think the rest have the junk, which looks the same to me on all of them.
I don't know when this started. As far as I know thing haven't changed for years (except underlying wikimedia software). Any ideas about what the deal is here? --R. S. Shaw (talk) 23:04, 30 April 2015 (UTC)
- @R. S. Shaw: I'm not sure what the problem was, but the markup was a bit overly complicated due to the way inkscape generates the SVG markup, so I went ahead and just re-created the image from scratch and all is good now. Offnfopt(talk) 08:44, 1 May 2015 (UTC)
- I suppose that's a fair workaround. One problem with the new version is that the fonts seem to be too small to make the in-line diagram readable in an article, e.g. in en:Call stack. A lesser issue is that it doesn't have the vertical ellipsis at the bottom to indicate the stack goes on in that direction.
- There may be a bigger issue, though, in that a recent change to SVG rendering software on Commons may have broken other images. Eventually I realized that the "spurious text" I saw was most likely the text missing from the inside of the boxes -- essentially it had been rendered in a different position than (presumably) specified, perhaps with a negative offset from the left margin rather than a positive one. Such a thing could affect (perhaps many) other images and maybe needs looking into. --R. S. Shaw (talk) 05:08, 2 May 2015 (UTC)
- I've done the file again (in your dimensions, but the file from Offnfopt was structurally already very good). The file seems exported from an PDF and (the code is very creepy) there seems several bugs together (bugs like this: phab:T36947, phab:T65703 and in all phab:T35245 and actually also phab:T97233, see above). ↔ User: Perhelion (Commons: = crap?) 08:00, 2 May 2015 (UTC)
GlobalReplace on itwiki
Not sure if this is the right place for this (please point me elsewhere if not).
I've been running GlobalReplace 0.3 to mass-replace some of the highest use raster files (e.g. File:600px Rosso e Nero.png) but unfortunately my edits on the Italian wiki were reverted and my account blocked for a day for "unauthorised bot". Does anyone familiar with that wiki know how I should go about making the edits if not with that tool? There are several templates which are transcluded to several hundred pages each which probably account for most of the uses but I think there are possibly thousands of individual cases as well. Unfortunately I don't speak Italian whatsoever so I'm not in a position to argue my case there. NikNaks talk – gallery – wikipedia 20:43, 3 May 2015 (UTC)
- If no one here is able to help, you may want to try the it embassy Offnfopt(talk) 03:22, 4 May 2015 (UTC)
- Why you not simply give this back to the source/root → Commons talk:GlobalReplace, this can happen to everybody to every project again, so I mean don't spread this issue to every case (I had the same issue there) ↔ User: Perhelion (Commons: = crap?) 05:56, 4 May 2015 (UTC)
- Thanks for the tips. I think I'll try out the embassy first and see what happens. I have to say I've made several of these mass changes before and never had a problem as far as I know, so perhaps it's just overzealous administration from the odd wiki from time to time that blocks it! Anyway, thanks again. NikNaks talk - gallery - wikipedia 09:30, 4 May 2015 (UTC)