Commons:Graphics village pump/July 2016
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Unidentified rendering issue with a SVG picture.
Hello,
the following image shows a black rectangle when rendered as PNG: File:Caisse plan incline glissement cone frottement.svg.
This rectangle does not seem to be related with any object I created with Inkscape. Any hint?
Regards
Cdang (talk) 09:52, 4 July 2016 (UTC)
- Cdang: Please see Help:SVG#Black rectangle (Flowed Text bug). —LX (talk, contribs) 11:18, 4 July 2016 (UTC)
- @LX: Thanks. Anyway, as I was adding some elements, I used the XML editor (I don't know anything about this but well, try&error strategy) and removed an element that did not seem to be related with a graphical object, and it seems OK know.
- Regards
- Cdang (talk) 11:33, 4 July 2016 (UTC)
Can anyone help shade two countries on the map File:OPEC.svg ?
To update this SVG map for OPEC's newly returned member nations (Indonesia & Gabon), I was able to add blue shading to the "invalid SVG" file version from 17 September 2008, but unfortunately I couldn't succeed with the "valid SVG" version from 29 June 2013. We'd certainly prefer to avoid using an invalid SVG for a map with millions of viewers per year in dozens of Wikipedia languages. Does anyone familiar with SVG see how to create a valid file with the updated shadings? Many thanks. —Patrug (talk) 21:49, 4 July 2016 (UTC)
- I updated the map, please check to make sure the shaded countries are correct. Offnfopt(talk) 00:24, 5 July 2016 (UTC)
- Looks great, thanks! Any "simple" way that a non-expert could edit the set of blue-shaded countries for future membership changes? —Patrug (talk) 01:35, 5 July 2016 (UTC)
- What problems did you encounter when trying to edit the validated SVG? Offnfopt(talk) 23:22, 6 July 2016 (UTC)
- The invalid SVG gives clear instructions for coloring countries near the top of the file, which made it easy to add the code for Gabon. When I tried adding the same code to the valid SVG file, it didn't work. —Patrug (talk) 04:44, 8 July 2016 (UTC)
- I made the changes using Inkscape, it is a free/open source vector editor. It takes some playing around with when you're not familiar with it, but after you get used to the interface and how to navigate the elements in a document, it doesn't take long to make these kind of quick changes. Offnfopt(talk) 12:32, 8 July 2016 (UTC)
- OK, thanks. I've added this info to File talk:OPEC.svg for future occasions. —Patrug (talk) 00:22, 10 July 2016 (UTC)
- I made the changes using Inkscape, it is a free/open source vector editor. It takes some playing around with when you're not familiar with it, but after you get used to the interface and how to navigate the elements in a document, it doesn't take long to make these kind of quick changes. Offnfopt(talk) 12:32, 8 July 2016 (UTC)
- The invalid SVG gives clear instructions for coloring countries near the top of the file, which made it easy to add the code for Gabon. When I tried adding the same code to the valid SVG file, it didn't work. —Patrug (talk) 04:44, 8 July 2016 (UTC)
- What problems did you encounter when trying to edit the validated SVG? Offnfopt(talk) 23:22, 6 July 2016 (UTC)
- Looks great, thanks! Any "simple" way that a non-expert could edit the set of blue-shaded countries for future membership changes? —Patrug (talk) 01:35, 5 July 2016 (UTC)
Help with File:GER-FRA 2016-07-07.svg
Hello, I was wondering what the issue with this SVG is, as when the image renders as a PNG on Wikipedia, the text seems distorted with letters too close to each other. I am not sure exactly what I need to fix, although maybe it is related to this? Secret Agent Julio (talk) 21:52, 15 July 2016 (UTC)
- Take a look at "Font substitution and fallback fonts" and "SVG Fonts", your SVG currently uses the Verdana font which is not available on the wiki servers (current SVG font list (Old). Since you're not using a supported font it is changed to a different font before it is rendered as PNG, which changes the appearance of the text. So it is recommended to change it to a supported font list to you know what to expect when the text is rendered. Also there is currently another issue that could affect you T139543 which will be fixed soon according to that thread. Offnfopt(talk) 20:09, 16 July 2016 (UTC)
- Hmm, I tried adjusting the font to DejaVu sans, but it did not seem to work. So maybe it is related to that thread then? Secret Agent Julio (talk) 09:55, 17 July 2016 (UTC)
- No it’s more phab:T36947. You can try to scale the whole image to result in an font-size of 70-80px, which is at moment the best workaround. ↔ User: Perhelion 17:43, 18 July 2016 (UTC)
- @Perhelion: Are you sure? This problem only has started recently when I have uploaded these SVGs, and I have not changed anything since I started. In fact, I just made a minor adjustment to a file which displayed perfectly fine before. All I did was move an object a few units, and after I reuploaded there is now a display problem. Nothing else with the file was changed. Secret Agent Julio (talk) 06:29, 26 July 2016 (UTC)
- @Secret Agent Julio: Image scalers have been migrated from Ubuntu to Debian. This may result in deviating Rendering. And it looks obviously diffrent between but I wouldn't say its better or worse than before. -- Menner (talk) 17:40, 26 July 2016 (UTC)
- @Secret Agent Julio: I've done the fix (workaround and the SVG cleaned) so we can clear compare the result what I mean:[1][2] So the answer is yes. PS: You can take this image as template for others, I used the clone technique. ↔ User: Perhelion 19:59, 26 July 2016 (UTC)
- @Perhelion: Wow thanks, I am surprised at how reduced the file size is! Is there a way to keep the base image the same colour? But it seems to me as though the text rendering has subtly changed recently though, correct? Thanks again for the help.
- @Secret Agent Julio: I've done the fix (workaround and the SVG cleaned) so we can clear compare the result what I mean:[1][2] So the answer is yes. PS: You can take this image as template for others, I used the clone technique. ↔ User: Perhelion 19:59, 26 July 2016 (UTC)
- @Secret Agent Julio: Image scalers have been migrated from Ubuntu to Debian. This may result in deviating Rendering. And it looks obviously diffrent between but I wouldn't say its better or worse than before. -- Menner (talk) 17:40, 26 July 2016 (UTC)
- @Perhelion: Are you sure? This problem only has started recently when I have uploaded these SVGs, and I have not changed anything since I started. In fact, I just made a minor adjustment to a file which displayed perfectly fine before. All I did was move an object a few units, and after I reuploaded there is now a display problem. Nothing else with the file was changed. Secret Agent Julio (talk) 06:29, 26 July 2016 (UTC)
- No it’s more phab:T36947. You can try to scale the whole image to result in an font-size of 70-80px, which is at moment the best workaround. ↔ User: Perhelion 17:43, 18 July 2016 (UTC)
- Hmm, I tried adjusting the font to DejaVu sans, but it did not seem to work. So maybe it is related to that thread then? Secret Agent Julio (talk) 09:55, 17 July 2016 (UTC)