Commons:Graphics village pump

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

Community portal
introduction
Help deskVillage pump
copyrightproposalstechnical
Administrators' noticeboard
vandalismuser problemsblocks and protections
Shortcut
COM:GVP

color palette logo WELCOME TO THE GRAPHICS VILLAGE PUMP!

This Graphics village pump aims to be technical support forum for all the local Labs, graphists (graphic artists), and volunteers 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: Graphics abilities page | Graphic Tool | Project Insignia | Stroke Order Project | Current requests/discussions


To have the opinion of graphists check

Illustration Workshop   Map Workshop   Photography Workshop   Video and Sound Workshop
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 Jun Jul Aug Sep Nov Dec
2017 Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2018 Jan Feb Mar May Jun Jul Aug Sep Oct Nov Dec
Topic-specific archives

Diagonally striped pattern on svg country map[edit]

Hello guys,

I'm trying to fill countries with a diagonally striped pattern on a svg world map in this kind of style, however, just filling countries instead of regions would be fine. Colors should be able to be determined with the ability to create transparent stripes. There are instructions on how to entirely fill and circle countries, but the above feature is missing. Anyone here who could extend the instructions or comment? Would like to use this map outside of Wikipedia in case there are different rendering requirements.
— Preceding unsigned comment added by MiMoHo (talk • contribs) 09:42, 11 April 2018 (UTC)

Help needed with Category:Files with inappropriate PDF format[edit]

We have growing number of files in Category:Files with inappropriate PDF format where people upload photographs and drawing as PDF files. Ideally content of those files would get saved in appropriate format and all the uses globally replaced. Than no longer used files could get moved to some "do-not-use" category. Many of the files are used on other projects. Can anybody help? This might be a small fraction of single page PDF files with photographs and drawings. --Jarekt (talk) 15:49, 12 December 2018 (UTC)

@Jarekt: For your info
There are some free oportunities that extract (not convert) Pictures from PDFs: (see de:Benutzer:JoKalliauer/PDF#Windows for details)
(PS. I do not take the request, at least not now.)
 — Johannes Kalliauer - Talk | Contributions 21:41, 12 December 2018 (UTC)
@Jarekt: Can you splitt {{BadSVG}} it in {{Convert to SVG}} and {{FakeSVG}}, because some contain Vectordata other contain just PNG/JPEG.
I could do the request.
 — Johannes Kalliauer - Talk | Contributions 09:03, 31 December 2018 (UTC)
User:JoKalliauer I did not understand what you would like me to help with. --Jarekt (talk) 13:12, 31 December 2018 (UTC)
@Jarekt: sorry for beeing that unclear. I thought more about it more and created subgroups:
If a file cotains vectordata (like text) it has to be converted to SVG (f.e. Inkscape), if it only contain one raster-grafic then this picture should be extracted to PNG/JPEG(f.e. with PDF Image Extraction Wizard)
 — Johannes Kalliauer - Talk | Contributions 16:37, 1 January 2019 (UTC)

Maybe someone can help me clean up Files with inappropriate PDF format (add {{Superseded}} and replace useage of the files)  — Johannes Kalliauer - Talk | Contributions 16:54, 1 January 2019 (UTC)

Thanks to @TilmannR: and all the other who helped to replace the images (also still not all files are fixed)  — Johannes Kalliauer - Talk | Contributions 19:41, 13 January 2019 (UTC)

Blank SVG image after upload[edit]

I have modified File:SevenSisterStates.svg file to create a few SVG maps using Inkscape. These images are rendered correctly in browser (Chrome, Firefox, IE), but after uploading to Commons the files look empty ((File:Assam district locator map Baksa.svg and others in Category:Locator maps of districts of Assam) where the original file still correctly renders (here). I am not sure what is happening, may be there is something going wrong in rendering the PNG images. Does anyone have any idea how to fix this? --SlowPhoton (talk) 10:13, 28 December 2018 (UTC)

@SlowPhoton: Please use Commons:Commons SVG Checker, and you will know the problem:
 — Johannes Kalliauer - Talk | Contributions 11:05, 28 December 2018 (UTC)
@SlowPhoton: is it on purpose that they have a transpraency? I removed it in File:Assam_district_locator_map_Baksa.svg, but not in the others.
@JoKalliauer: That was not on purpose. I did not realiser that there were transparency. Is there a quick way to fix this? --SlowPhoton (talk) 16:13, 28 December 2018 (UTC)
If you ungroup everything in inkscape it will remove the transparency (that's how I did it) I think it is related to mask2921 with opacity:0.97000002. I will check that /or do that.  — Johannes Kalliauer - Talk | Contributions 22:11, 28 December 2018 (UTC)
@SlowPhoton: I think now all files are fixed. Please check  — Johannes Kalliauer - Talk | Contributions 12:47, 3 February 2019 (UTC)

White SVG[edit]

I just uploaded four logos, two of which should display as white.

When opening the white SVGs via the "original file" link, they are rendered white in my browser as intended (see [1] and [2]). But somehow embedding the logos on a wiki or in a gallery (like above), the logos are rendered in black. Is this a bug or is there something I need to consider when creating the SVGs? Thanks in advance for any helpful suggestions. Regards, Christoph Braun (talk) 13:34, 26 January 2019 (UTC)

@Christoph Braun: You need to check the files with c:Commons:Commons SVG Checker then you get the errormessage:
 — Johannes Kalliauer - Talk | Contributions 17:07, 26 January 2019 (UTC)
@Christoph Braun: which tool did you use? I assumed Adobe Illustrator and optimiced with SVGO? (This assumtion might be wrong?)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Regards, Christoph Braun (talk) 18:18, 26 January 2019 (UTC)

Resizing transparent PNG files[edit]

I have created as set of PNG transparencies for the Tai Tham script (e.g. Lanna vowel au cu ci.png because I need to display glyph variations that are not, and should probably not be, supported by Unicode and also unencoded characters. (The portability/quality of fonts also leaves a lot to be desired.) The glyphs are nominally black with a greyscale defined by the alpha channel. When the unresized glyph is displayed on a coloured background, I get the right appearance.

However, when I use '|xpx40' to shrink the images for sober use within tables, it seems that the thumbnail is generated by assuming the background is white; the thumbnail's white background then gives an unwanted contrast with the background of the cell in the table. I had expected the thumbnail to also have a transparent background.

How should I solve this problem? I can see several solutions:

  1. Raise a bug report/feature request on Phabricator - or is the problem intractable?
  2. I've missed a work-around of specifying a background colour for the image
  3. Generate and upload a strike of opaque images for each background colour (other than white) that is used
  4. Generate and upload a strike of transparent images for each chosen size

Which should I adopt? Options 2 and 3 could be defeated by the same cell having different background colours for different readers. --RichardW57 (talk) 23:18, 26 January 2019 (UTC)

@RichardW57: Would it be possible for you to generate SVGs instead of PNGs? I've been told that SVGs don't have these transparency problems and they look nice and anti-aliased at any size (assuming they are not just wrappers for PNG files). TilmannR (talk) 12:34, 28 January 2019 (UTC)
@TilmannR: My starting point is a PostScript master, but I can see how to automatically generate an SVG file from it, though I'm having trouble with the image size and am including far too much space at the bottom. My first effort, Lanna letter pa.svg, scales to give a proper transparency. I shall probably have to study the specifications. --RichardW57 (talk) 22:48, 29 January 2019 (UTC)
@RichardW57: After setting the width and height of the viewBox to the width and height of the image (while ignoring its unit of measurement "pt"), everything looks fine. Maybe that'll help you debug the problem. TilmannR (talk) 22:57, 29 January 2019 (UTC)
@TilmannR: Yes, thanks, I think I can now see what's going on and what went wrong. Now to automate the conversion! --RichardW57 (talk) 23:52, 29 January 2019 (UTC)
@TilmannR: Now automated for images using the Hariphunchai/Lamphun font. --RichardW57 (talk) 23:57, 5 February 2019 (UTC)

Fonts for SVGs on WCommons[edit]

Hello, I'm starting this conversation to understand the working of fonts in SVG (vector graphics) files on Wikimedia Commons. Starting from 21 February 2018, we will be starting a campaign in India to translate SVG files from Category:SVG diagrams in English into different Indian languages. The campaign page is at Commons:SVG Translation Campaign 2019 in India. While translating these files using Inkscape or any other software/tool, fonts are very crucial. When we use the default fonts, they maybe copyrighted. When uploaded to WCommons, it gets rendered to the closest available open-source font from the library (correct me if I am wrong). This may lead distortion of text or nearby paths in the vector file. To avoid these issues, we would like directly use the open source fonts that WCommons uses for SVG rendering. This will hopefully eliminate the distortion issues. It would extremely helpful if I can get the list of fonts used by WCommons for all the languages, and if possible, links to download these. Particularly for this campaign, our scope is limited to 20 languages as listed at Commons:SVG Translation Campaign 2019 in India/Organisers. Suggestions for the overall campaign are also welcome, thanks in advance. KCVelaga (talk · mail) 07:10, 3 February 2019 (UTC)

@KCVelaga: Please read meta:SVG_fonts, Help:SVG#Fonts_/_text, w:Wikipedia:SVG_help#font-family_issues — Johannes Kalliauer - Talk | Contributions 10:35, 3 February 2019 (UTC)